Changeset 12249
- Timestamp:
- 11/17/2022 01:55:33 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload-handler.php
r12179 r12249 279 279 'post_status' => array( 'publish', 'pending', 'disabled', 'closed', 'new', 'draft', 'approved' ), 280 280 ) ); 281 if ( $readme_plugin_post ) {281 if ( $readme_plugin_post && trim( $readme->name ) ) { 282 282 $error = __( 'README Error: The plugin has already been submitted.', 'wporg-plugins' ); 283 284 if ( $readme_plugin_post->post_author != get_current_user_id() ) { 285 return new \WP_Error( 'already_submitted', $error . ' ' . sprintf( 286 /* translators: 1: plugin slug, 2: 'Plugin Name:' */ 287 __( 'There is already a plugin with the name %1$s in the directory. You must rename your plugin by changing the %2$s line in your main plugin file and in your readme. Once you have done so, you may upload it again.', 'wporg-plugins' ), 288 '<code>' . esc_html( $readme->name ) . '</code>', 289 '<code>Plugin Name:</code>' 290 ) ); 291 } 283 292 284 293 return new \WP_Error( 'already_submitted', $error . ' ' . sprintf(
Note: See TracChangeset
for help on using the changeset viewer.