Changeset 11806 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-capabilities.php
- Timestamp:
- 04/28/2022 03:42:10 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
r11748 r11806 64 64 'plugin_self_transfer', 65 65 'plugin_self_close', 66 'plugin_manage_releases',67 66 ) 68 67 ) 69 68 ) { 70 69 $required_caps[] = 'do_not_allow'; 70 } 71 72 // Disable (or restrict to reviewers) release management. 73 if ( 'plugin_manage_releases' === $cap ) { 74 if ( 'disabled' === $post->post_status ) { 75 // Plugin reviewers can approve for disabled plugins. 76 $required_caps[] = 'plugin_review'; 77 } elseif ( 'publish' !== $post->post_status ) { 78 // A non-published plugin cannot have it's releases approved. 79 $required_caps[] = 'do_not_allow'; 80 } 71 81 } 72 82
Note: See TracChangeset
for help on using the changeset viewer.