Changeset 5416
- Timestamp:
- 04/26/2017 10:46:56 PM (8 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
r5401 r5416 97 97 $plugin_post = Plugin_Directory::get_plugin_post( $this->plugin_slug ); 98 98 99 // Is there already a plugin by a different author?99 // Is there already a plugin with the same slug by a different author? 100 100 if ( $plugin_post && $plugin_post->post_author != get_current_user_id() ) { 101 101 /* translators: 1: plugin slug, 2: 'Plugin Name:' */ … … 106 106 } 107 107 108 // Check the plugin can accept uploads (New submissions, or pending further review).109 if ( $plugin_post && ! in_array( $plugin_post->post_status, array( 'new', 'pending' ) )) {108 // Is there already a plugin with the same slug by the same author? 109 if ( $plugin_post ) { 110 110 /* translators: 1: plugin slug, 2: 'Plugin Name:' */ 111 111 return sprintf( __( 'There is already a plugin called %1$s. Please change the %2$s line in your main plugin file and upload it again.', 'wporg-plugins' ),
Note: See TracChangeset
for help on using the changeset viewer.