Making WordPress.org

Ticket #4866: 4866.diff

File 4866.diff, 1.5 KB (added by Ipstenu, 4 years ago)
  • trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload-handler.php

     
    107107
    108108                        return new \WP_Error( 'reserved_name', $error . ' ' . sprintf(
    109109                                /* translators: 1: plugin slug, 2: 'Plugin Name:' */
    110                                 __( 'Your chosen plugin name - %1$s - has been reserved and cannot be used. Please change the %2$s line in your main plugin file and readme, then you may upload it again.', 'wporg-plugins' ),
     110                                __( 'Your chosen plugin name - %1$s - has been reserved or otherwise restricted from use entirely. Please change the %2$s line in your main plugin file and readme, then you may upload it again.', 'wporg-plugins' ),
    111111                                '<code>' . $this->plugin_slug . '</code>',
    112112                                '<code>Plugin Name:</code>'
    113113                        ) );
     
    348348                        'developer',
    349349                        'featured',
    350350                        'filter',
     351                        'site-kit-by-google',
    351352                        'jquery',
    352353                        'new',
    353354                        'page',
     355                        'plugins',
    354356                        'popular',
    355357                        'post',
    356358                        'search',
     
    359361                        'upload',
    360362                        'wordpress',
    361363                        'wp-admin',
     364                        'yoast-seo',
    362365                );
    363366
    364367                return in_array( $this->plugin_slug, $reserved_slugs );
     
    374377                        'adobe-',
    375378                        'advanced-custom-fields-',
    376379                        'amazon-',
     380                        'contact-form-7-',
    377381                        'divi-',
    378382                        'easy-digital-downloads-',
    379383                        'elementor-',