Making WordPress.org

Ticket #5939: 5939.2.diff

File 5939.2.diff, 6.4 KB (added by Ipstenu, 3 years ago)
  • 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. 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' ),
     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. Per the requirements of trademark owners and law, we disallow the use of certain terms in ways that are infringing and/or misleading. 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 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' ),
     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>',
     
    236236
    237237                                return new \WP_Error( 'already_exists_in_the_wild', $error . ' ' . sprintf(
    238238                                        /* translators: 1: plugin slug, 2: 'Plugin Name:' */
    239                                         __( 'There is already a plugin with the name %1$s known to exist, though it is not hosted on WordPress.org. This means the permalink %2$s is already in use, and has a significant user base. Were we to accept it as-is, our system would overwrite those other installs and potentially damage any existing users. This is especially true since WordPress 5.5 and up will automatically update plugins and themes. You must rename your plugin by changing the %3$s line in your main plugin file and in your readme. Once you have done so, you may upload it again. If you feel this is an incorrect assessment of the situation, please email <a href="mailto:%4$s">%4$s</a> and explain why so that we may help you.', 'wporg-plugins' ),
     239                                        __( 'There is already a plugin with the name %1$s known to exist, though it is not hosted on WordPress.org. This means the permalink %2$s is already in use on active sites, and has a significant user base. Were we to accept it as-is, our system would overwrite those other installs and potentially damage any existing users. This is especially true since WordPress 5.5 and up will automatically update plugins and themes. You must rename your plugin by changing the %3$s line in your main plugin file and in your readme. Once you have done so, you may upload it again. If you feel this is an incorrect assessment of the situation, please email <a href="mailto:%4$s">%4$s</a> and explain why so that we may help you.', 'wporg-plugins' ),
    240240                                        '<code>' . $this->plugin['Name'] . '</code>',
    241241                                        '<code>' . $this->plugin_slug . '</code>',
    242242                                        '<code>Plugin Name:</code>',
     
    407407                        'upload',
    408408                        'wp-admin',
    409409                        // Reserved names.
     410                        'meta',
    410411                        'jquery',
    411412                        'wordpress',
    412413                        // common submissions by people trying to upload locally.
     
    482483                        'jetpack-',
    483484                        'macintosh-',
    484485                        'mailchimp-',
     486                        'meta-',
     487                        'metaverse',
    485488                        'microsoft-',
    486489                        'ninja-forms-',
    487490                        'oculus',
     
    529532                $trademark_exceptions = array(
    530533                        'yoast.com'             => array( 'yoast' ),
    531534                        'automattic.com'        => array( 'akismet', 'akismet-', 'jetpack', 'jetpack-', 'wordpress', 'wp-', 'woo', 'woo-', 'woocommerce', 'woocommerce-' ),
    532                         'facebook.com'          => array( 'facebook', 'instagram', 'oculus', 'whatsapp' ),
     535                        'facebook.com'          => array( 'facebook', 'instagram', 'meta-', 'metaverse', 'oculus', 'whatsapp' ),
    533536                        'support.microsoft.com' => array( 'bing-', 'microsoft-' ),
    534537                        'trustpilot.com'        => array( 'trustpilot' ),
    535538                        'microsoft.com'         => array( 'bing-', 'microsoft-' ),