Making WordPress.org

Changeset 12621


Ignore:
Timestamp:
06/06/2023 01:16:26 AM (20 months ago)
Author:
dd32
Message:

Plugin Directory: Only new plugins can change their slug, not once they're pending.

This was enforced by the endpoint, but not the UI.

See [12617].
See #6107.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload.php

    r12619 r12621  
    183183                    // List of all plugins in progress.
    184184                    foreach ( $submitted_plugins as $plugin ) {
    185                         $can_change_slug = ! $plugin->{'_wporg_plugin_original_slug'};
     185                        $can_change_slug = ( 'new' === $plugin->post_status && ! $plugin->{'_wporg_plugin_original_slug'} );
    186186
    187187                        echo '<li>';
Note: See TracChangeset for help on using the changeset viewer.