Changeset 11827 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-capabilities.php
- Timestamp:
- 05/10/2022 05:06:56 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-capabilities.php
r11806 r11827 72 72 // Disable (or restrict to reviewers) release management. 73 73 if ( 'plugin_manage_releases' === $cap ) { 74 if ( 'disabled' === $post->post_status ) {75 // Plugin reviewers can approve for disabled plugins.74 if ( 'disabled' === $post->post_status || 'closed' === $post->post_status ) { 75 // Plugin reviewers can approve for disabled/closed plugins. 76 76 $required_caps[] = 'plugin_review'; 77 77 } elseif ( 'publish' !== $post->post_status ) { 78 // A non-published plugin cannot have it's releases approved .78 // A non-published plugin cannot have it's releases approved otherwise. 79 79 $required_caps[] = 'do_not_allow'; 80 80 }
Note: See TracChangeset
for help on using the changeset viewer.