Making WordPress.org

Ticket #4719: 1944.diff

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

     
    119119
    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 - 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' ),
     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 disallow the use of certain terms in ways that are infringing or misleading. In many cases, renaming your plugin to end with "for-%2$s" instead will resolve this issue. To do this, please change the %3$s line in your main plugin file and readme and upload the plugin again. 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(),
    125125                                '<code>Plugin Name:</code>',
     
    147147
    148148                        return new \WP_Error( 'already_submitted', $error . ' ' . sprintf(
    149149                                /* translators: 1: plugin slug, 2: Documentation URL, 3: plugins@wordpress.org */
    150                                 __( 'You have already submitted a plugin named %1$s. There is no need to resubmit existing plugins, even for new versions. Simply update your plugin within the directory via <a href="%2$s">SVN</a>. If you need assistance, email <a href="mailto:%3$s">%3$s</a> and let us know. Make sure to include any error messages in your email.', 'wporg-plugins' ),
     150                                __( 'You have already submitted a plugin named %1$s. There is no need to resubmit existing plugins, even for new versions. Instead, please update your plugin within the directory via <a href="%2$s">SVN</a>. If you need assistance, email <a href="mailto:%3$s">%3$s</a> and let us know.', 'wporg-plugins' ),
    151151                                '<code>' . $this->plugin_slug . '</code>',
    152152                                __( 'https://developer.wordpress.org/plugins/wordpress-org/how-to-use-subversion/', 'wporg-plugins' ),
    153153                                'plugins@wordpress.org'
     
    209209                }
    210210
    211211                $readme = $this->find_readme_file();
     212                // Check for a valid readme
    212213                if ( empty( $readme ) ) {
    213214                        $error = __( 'Error: The plugin has no readme.', 'wporg-plugins' );
    214215
     
    221222                }
    222223                $readme = new Parser( $readme );
    223224
     225                // Check for a readme license.
     226                if ( $readme->license ) {
     227                        $error = __( 'Error: No license defined.', 'wporg-plugins' );
     228
     229                        return new \WP_Error( 'no_license', $error . ' ' . sprintf(
     230                                /* translators: 1: readme.txt */
     231                                __( 'Your plugin has no license declared. Please update your %1$s with a GPLv2 (or later) compatible license.', 'wporg-plugins' ),
     232                                '<code>readme.txt</code>'
     233                        ) );
     234                }
     235
    224236                // Pass it through Plugin Check and see how great this plugin really is.
    225237                // We're not actually using this right now.
    226238                $result = $this->check_plugin();
     
    305317
    306318                $message = sprintf(
    307319                        /* translators: 1: plugin name, 2: plugin slug, 3: plugins@wordpress.org */
    308                         __( 'Thank you for uploading %1$s to the WordPress Plugin Directory. Your plugin has been given the initial slug of %2$s, however that is subject to change based on the results of your code review. If this slug is incorrect, please contact us immediately, as it cannot be changed once your plugin is approved.' ),
     320                        __( 'Thank you for uploading %1$s to the WordPress Plugin Directory. Your plugin has been given the initial slug of %2$s, however that is subject to change based on the results of your code review. If this slug is incorrect, please contact us immediately and tell us exactly what the correct slug should be. Remember, a plugin slug cannot be changed once your plugin is approved.' ),
    309321                        esc_html( $this->plugin['Name'] ),
    310322                        '<code>' . $this->plugin_slug . '</code>'
    311323                ) . '</p><p>';
     
    378390                        'elementor-',
    379391                        'facebook',
    380392                        'feedburner',
     393                        'github-',
    381394                        'google-',
    382395                        'gravity-forms-',
    383396                        'gutenberg',
     
    498511
    499512Your plugin has been given the initial slug of %2$s based on your display name of %1$s. This is subject to change based on the results of your review.
    500513
    501 If you need to change the plugin slug, please reply to this email immediately and let us know, otherwise we will be unable to do so later.
     514If you need to change the plugin slug, please reply to this email immediately and let us know what the correct slug should be. We will be unable to change your plugin slug once your review is completed.
    502515
    503516If 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.
    504517
     
    509522
    510523Also, make sure to follow our official blog: https://make.wordpress.org/plugins/
    511524
     525Note: Reviews are currently in English only. We apologize for the inconvenience.
     526
    512527--
    513528The WordPress Plugin Directory Team
    514529https://make.wordpress.org/plugins', 'wporg-plugins'