Changeset 12812
- Timestamp:
- 08/08/2023 04:35:50 AM (16 months ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-capabilities.php
r11827 r12812 75 75 // Plugin reviewers can approve for disabled/closed plugins. 76 76 $required_caps[] = 'plugin_review'; 77 } elseif ( 'publish' !== $post->post_status) {77 } elseif ( ! in_array( $post->post_status, [ 'publish', 'approved' ] ) ) { 78 78 // A non-published plugin cannot have it's releases approved otherwise. 79 79 $required_caps[] = 'do_not_allow'; -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-release-confirmation.php
r12602 r12812 40 40 // Remove closed plugins. 41 41 $plugins = array_filter( $plugins, function( $plugin ) { 42 return ( $plugin && in_array( $plugin->post_status, array( 'publish', 'disabled' ) ) );42 return ( $plugin && in_array( $plugin->post_status, array( 'publish', 'disabled', 'approved' ) ) ); 43 43 } ); 44 44
Note: See TracChangeset
for help on using the changeset viewer.