Changeset 7805 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload-handler.php
- Timestamp:
- 10/30/2018 10:40:14 AM (6 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
r7800 r7805 115 115 116 116 $plugin_post = Plugin_Directory::get_plugin_post( $this->plugin_slug ); 117 118 // Is there a previously rejected plugin with the same slug?119 if ( $plugin_post && 'rejected' === $plugin_post->post_status ) {120 // Change slug to 'rejected-plugin-name-rejected' to free up 'plugin-name'.121 wp_update_post( array(122 'ID' => $plugin_post->ID,123 'post_name' => sprintf( 'rejected-%s-rejected', $plugin_post->post_name ),124 ) );125 126 $plugin_post = null;127 }128 117 129 118 // Is there already a plugin with the same slug by a different author?
Note: See TracChangeset
for help on using the changeset viewer.