Making WordPress.org

Ticket #5729: 5729-2.diff

File 5729-2.diff, 5.7 KB (added by Ipstenu, 4 years ago)

Grabbed the wrong version!

  • trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload-handler.php

     
    121121                                // Trademarks that do NOT end in "-" indicate slug cannot contain term at all.
    122122                                $message = sprintf(
    123123                                        /* translators: 1: plugin slug, 2: trademarked term, 3: 'Plugin Name:', 4: plugin email address */
    124                                         __( 'Your chosen plugin name - %1$s - contains the restricted term "%2$s" and cannot be used at all in your plugin permalink nor the display name. To proceed with this submission you must remove "%2$s" from the %3$s line in both your main plugin file and readme entirely. Once you\'ve finished, you may upload the plugin again. If you feel this is in error, please email us at %4$s and explain why.', 'wporg-plugins' ),
     124                                        __( 'Your chosen plugin name - %1$s - contains the restricted term "%2$s" and cannot be used at all in your plugin permalink nor the display name. To proceed with this submission you must remove "%2$s" from the %3$s line in both your main plugin file and readme entirely. Once you\'ve finished, you may upload the plugin again. Do not attempt to work around this by removing letters (i.e. WordPess) or using numbers (4 instead of A). Those are seen as intentional actions to avoid trademark laws, and are not permitted. If you feel this is in error, such as you legally own the trademarked term, please email us at %4$s and explain why.', 'wporg-plugins' ),
    125125                                        '<code>' . $this->plugin_slug . '</code>',
    126126                                        trim( $this->has_trademarked_slug(), '-' ),
    127127                                        '<code>Plugin Name:</code>',
     
    131131                                // Trademarks ending in "-" indicate slug cannot BEGIN with that term.
    132132                                $message = sprintf(
    133133                                        /* translators: 1: plugin slug, 2: trademarked term, 3: 'Plugin Name:', 4: plugin email address */
    134                                         __( 'Your chosen plugin name - %1$s - contains the restricted term "%2$s" and cannot be used. Per the demands of trademark owners we disallow the use of certain terms in ways that are infringing or misleading. In order to proceed with this submission, you must change the %3$s line in your main plugin file and readme to end with  "-%2$s" instead. Once you\'ve finished, you may upload the plugin again. If you feel this is in error, please email us at %4$s and explain why.', 'wporg-plugins' ),
     134                                        __( 'Your chosen plugin name - %1$s - contains the restricted term "%2$s" and cannot be used to begin your permalink or display name. Per the requirements of trademark owners and law, we disallow the use of certain terms in ways that are infringing and/or misleading. In order to proceed with this submission, you must change the %3$s line in your main plugin file and readme to end with  "-%2$s" instead. Once you\'ve finished, you may upload the plugin again. If you feel this is in error, such as you legally own the trademarked term, please email us at %4$s and explain why.', 'wporg-plugins' ),
    135135                                        '<code>' . $this->plugin_slug . '</code>',
    136136                                        trim( $this->has_trademarked_slug(), '-' ),
    137137                                        '<code>Plugin Name:</code>',
     
    413413                        'akismet-anti-spam',
    414414                        'site-kit-by-google',
    415415                        'yoast-seo',
     416                        'woo',
    416417                        'wp-media-folder',
    417418                        'wp-file-download',
    418419                        'wp-table-manager',
     
    433434                        'advanced-custom-fields-',
    434435                        'adwords-',
    435436                        'akismet-',
     437                        'all-in-one-wp-migration',
    436438                        'amazon-',
    437439                        'android-',
    438440                        'apple-',
     441                        'applenews-',
    439442                        'aws-',
    440443                        'bbpress-',
    441444                        'bing-',
     
    442445                        'bootstrap-',
    443446                        'buddypress-',
    444447                        'contact-form-7-',
     448                        'cpanel-',
     449                        'disqus-',
    445450                        'divi-',
     451                        'dropbox-',
    446452                        'easy-digital-downloads-',
    447453                        'elementor-',
    448454                        'envato-',
     455                        'fbook',
    449456                        'facebook',
    450457                        'fb-',
     458                        'fb-messenger',
     459                        '-fb',
     460                        'fedex-',
    451461                        'feedburner',
     462                        'ganalytics-',
    452463                        'gberg',
    453464                        'github-',
    454465                        'givewp-',
    455466                        'google-',
     467                        'googlebot-',
    456468                        'googles-',
     469                        'gravity-form-',
    457470                        'gravity-forms-',
    458471                        'gutenberg',
    459472                        'guten-',
    460473                        'hubspot-',
    461474                        'ig-',
     475                        '-ig',
     476                        'insta-',
    462477                        'instagram',
     478                        'internet-explorer-',
    463479                        'jetpack-',
    464480                        'macintosh-',
     481                        'mailchimp-',
    465482                        'microsoft-',
    466483                        'ninja-forms-',
    467484                        'oculus',
     485                        'onlyfans-',
     486                        'only-fans-',
     487                        'paddle-',
    468488                        'paypal-',
    469489                        'pinterest-',
    470490                        'stripe-',
     491                        'tiktok-',
     492                        'trustpilot',
    471493                        'twitter-',
    472494                        'tweet',
     495                        'ups-',
     496                        'usps-',
     497                        'vvhatsapp',
     498                        'vvcommerce',
     499                        'vva-',
     500                        'vvoo',
    473501                        'wa-',
     502                        '-wa',
     503                        'wh4tsapps',
    474504                        'whatsapp',
    475505                        'whats-app',
    476506                        'watson',
    477507                        'windows-',
    478508                        'wocommerce',
     509                        'woocom-',
    479510                        'woocommerce',  // technically ending with '-for-woocommerce' is allowed.
     511                        'woocomerce',
    480512                        'woo-commerce',
    481513                        'woo-',
    482514                        'wo-',
    483515                        'wordpress',
     516                        'wordpess',
    484517                        'wpress',
    485518                        'wp-',
     519                        '-wp',
    486520                        'wp-mail-smtp-',
    487521                        'yahoo-',
    488522                        'yoast',
     
    492526                // Domains from which exceptions would be accepted.
    493527                $trademark_exceptions = array(
    494528                        'yoast.com'             => array( 'yoast' ),
    495                         'automattic.com'        => array( 'akismet', 'akismet-', 'jetpack', 'jetpack-', 'wordpress', 'wp-', 'woo', 'woo-', 'woocommerce', 'woocommerce-' ),
     529                        'automattic.com'        => array( 'akismet', 'akismet-', 'jetpack', 'jetpack-', 'wordpress', 'wp-', '-wp', 'woo', 'woo-', 'woocommerce', 'woocommerce-' ),
    496530                        'facebook.com'          => array( 'facebook', 'instagram', 'oculus', 'whatsapp' ),
    497531                        'support.microsoft.com' => array( 'bing-', 'microsoft-' ),
     532                        'trustpilot.com'        => array( 'trustpilot' ),
    498533                        'microsoft.com'         => array( 'bing-', 'microsoft-' ),
    499534                );
    500535