Making WordPress.org

Changeset 9102


Ignore:
Timestamp:
08/14/2019 08:10:07 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Plugin Directory: Loosen the check for trademarked slugs to allow using some terms of less restrictive owners to be used at the end of a slug.

Props Ipstenu.
Fixes #4676.

File:
1 edited

Legend:

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

    r9101 r9102  
    120120            return new \WP_Error( 'trademarked_name', $error . ' ' . sprintf(
    121121                /* translators: 1: plugin slug, 2: trademarked term, 3: 'Plugin Name:', 4: plugin email address */
    122                 __( 'Your chosen plugin name - %1$s - has been flagged for trademark infringement by containing the term "%2$s" and as such cannot be used. In order to comply with demands from trademark owners and to protect developers, we are disallowing the use of specific terms in plugin slugs entirely. Please change the %3$s line in your main plugin file and readme so that you may upload your plugin for review. If you feel this is in error, please email us at %4$s and explain why.', 'wporg-plugins' ),
     122                __( 'Your chosen plugin name - %1$s - contains the restricted term "%2$s" and cannot be used. Per the demands of trademark owners and in order to protect developers, we are disallowing the use of certain terms in ways that are infringing or misleading. Please change the %3$s line in your main plugin file and readme so that you may upload your plugin for review. If you feel this is in error, please email us at %4$s and explain why.', 'wporg-plugins' ),
    123123                '<code>' . $this->plugin_slug . '</code>',
    124124                $this->has_trademarked_slug(),
     
    368368    public function has_trademarked_slug() {
    369369        $trademarked_slugs = array(
    370             'contact-form-7',
    371             'divi',
    372             'easy-digital-downloads',
    373             'elementor',
     370            'contact-form-7-',
     371            'divi-',
     372            'easy-digital-downloads-',
     373            'elementor-',
    374374            'facebook',
    375375            'feedburner',
    376             'google',
    377             '-gram',
    378             'gram-',
    379             'gravity-forms',
     376            'google-',
     377            'gravity-forms-',
    380378            'gutenberg',
    381379            'instagram',
    382380            'insta',
    383             'macintosh',
    384             'microsoft',
    385             'ninja-forms',
    386             'pinterest',
    387             'samsung',
    388             'twitter',
     381            'macintosh-',
     382            'microsoft-',
     383            'ninja-forms-',
     384            'pinterest-',
     385            'twitter-',
    389386            'tweet',
    390387            'whatsapp',
    391388            'whats-app',
    392             'woocommerce',
     389            'woocommerce-',
    393390            'wordpress',
    394391            'yoast',
    395             'youtube',
     392            'youtube-',
    396393        );
    397394
     
    400397        foreach ( $trademarked_slugs as $trademark ) {
    401398            if ( false !== strpos( $this->plugin_slug, $trademark ) ) {
    402                 $has_trademarked_slug = $trademark;
     399                $has_trademarked_slug = trim( $trademark, '-' );
    403400                break;
    404401            }
     
    501498If there are any other problems with your submission, please reply to this email and let us know right away. In most cases, we can correct errors as long as the plugin has not yet been approved.
    502499
    503 We remind you review the following links to understand the review process and our expectations:
     500We remind you read the following links to understand the review process and our expectations:
    504501
    505502Guidelines: https://developer.wordpress.org/plugins/wordpress-org/detailed-plugin-guidelines/
Note: See TracChangeset for help on using the changeset viewer.