Making WordPress.org

Changeset 7805


Ignore:
Timestamp:
10/30/2018 10:40:14 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Plugins: Revert [7800].

Plugins rejected before [5460] should keep their slugs reserved.

Fixes #3864.

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  
    115115
    116116        $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         }
    128117
    129118        // Is there already a plugin with the same slug by a different author?
Note: See TracChangeset for help on using the changeset viewer.