Changeset 2790 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-controls.php
- Timestamp:
- 03/24/2016 06:36:48 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
r2659 r2790 18 18 self::display_post_status(); 19 19 20 if ( 'publish' == get_post_status() ) {20 if ( 'publish' === get_post_status() ) { 21 21 self::display_tested_up_to(); 22 22 } … … 36 36 $post = get_post(); 37 37 38 // Bail if the current user can't review plugins. 39 if ( ! current_user_can( 'plugin_approve', $post ) ) { 40 return; 41 } 42 38 43 $statuses = array( 'publish', 'pending', 'disabled', 'closed', 'rejected' ); 39 // TODO Add capability check here40 44 ?> 41 45 <div class="misc-pub-section misc-pub-plugin-status">
Note: See TracChangeset
for help on using the changeset viewer.