Making WordPress.org


Ignore:
Timestamp:
08/08/2023 04:35:50 AM (18 months ago)
Author:
dd32
Message:

Plugin Directory: Allow plugins which are in the 'approved' state to confirm releases.

This can happen when a plugin is approved, and immediately transferred to an account which has release confirmations forced on.

File:
1 edited

Legend:

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

    r11827 r12812  
    7575                // Plugin reviewers can approve for disabled/closed plugins.
    7676                $required_caps[] = 'plugin_review';
    77             } elseif ( 'publish' !== $post->post_status ) {
     77            } elseif ( ! in_array( $post->post_status, [ 'publish', 'approved' ] ) ) {
    7878                // A non-published plugin cannot have it's releases approved otherwise.
    7979                $required_caps[] = 'do_not_allow';
Note: See TracChangeset for help on using the changeset viewer.