Ticket #4719: 1944.diff
File 1944.diff, 5.6 KB (added by , 5 years ago) |
---|
-
trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload-handler.php
119 119 120 120 return new \WP_Error( 'trademarked_name', $error . ' ' . sprintf( 121 121 /* 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' ), 123 123 '<code>' . $this->plugin_slug . '</code>', 124 124 $this->has_trademarked_slug(), 125 125 '<code>Plugin Name:</code>', … … 147 147 148 148 return new \WP_Error( 'already_submitted', $error . ' ' . sprintf( 149 149 /* 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' ), 151 151 '<code>' . $this->plugin_slug . '</code>', 152 152 __( 'https://developer.wordpress.org/plugins/wordpress-org/how-to-use-subversion/', 'wporg-plugins' ), 153 153 'plugins@wordpress.org' … … 209 209 } 210 210 211 211 $readme = $this->find_readme_file(); 212 // Check for a valid readme 212 213 if ( empty( $readme ) ) { 213 214 $error = __( 'Error: The plugin has no readme.', 'wporg-plugins' ); 214 215 … … 221 222 } 222 223 $readme = new Parser( $readme ); 223 224 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 224 236 // Pass it through Plugin Check and see how great this plugin really is. 225 237 // We're not actually using this right now. 226 238 $result = $this->check_plugin(); … … 305 317 306 318 $message = sprintf( 307 319 /* 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 itcannot 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.' ), 309 321 esc_html( $this->plugin['Name'] ), 310 322 '<code>' . $this->plugin_slug . '</code>' 311 323 ) . '</p><p>'; … … 378 390 'elementor-', 379 391 'facebook', 380 392 'feedburner', 393 'github-', 381 394 'google-', 382 395 'gravity-forms-', 383 396 'gutenberg', … … 498 511 499 512 Your 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. 500 513 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.514 If 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. 502 515 503 516 If 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. 504 517 … … 509 522 510 523 Also, make sure to follow our official blog: https://make.wordpress.org/plugins/ 511 524 525 Note: Reviews are currently in English only. We apologize for the inconvenience. 526 512 527 -- 513 528 The WordPress Plugin Directory Team 514 529 https://make.wordpress.org/plugins', 'wporg-plugins'