Changeset 12812 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-capabilities.php
- Timestamp:
- 08/08/2023 04:35:50 AM (18 months ago)
- File:
-
- 1 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';
Note: See TracChangeset
for help on using the changeset viewer.