Changeset 2980
- Timestamp:
- 04/19/2016 08:03:45 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-controls.php
r2971 r2980 37 37 38 38 // Bail if the current user can't review plugins. 39 if ( ! current_user_can( 'plugin_approve', $post ) ) {39 if ( ! current_user_can( 'plugin_approve', $post ) && ! current_user_can( 'plugin_review', $post ) ) { 40 40 return; 41 41 } 42 42 43 $statuses = array( 'publish', 'pending', 'disabled', 'closed', 'rejected' ); 43 $statuses = array( 'draft', 'pending' ); 44 if ( current_user_can( 'plugin_approve', $post ) ) { 45 $statuses = array_merge( $statuses, array( 'publish', 'disabled', 'closed', 'rejected' ) ); 46 } 44 47 ?> 45 48 <div class="misc-pub-section misc-pub-plugin-status">
Note: See TracChangeset
for help on using the changeset viewer.