Changeset 5318 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-controls.php
- Timestamp:
- 04/11/2017 06:37:04 AM (8 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
r4212 r5318 41 41 } 42 42 43 $statuses = array( ' draft', 'pending' );43 $statuses = array( 'new', 'pending' ); 44 44 if ( current_user_can( 'plugin_approve', $post ) ) { 45 if ( in_array( $post->post_status, array( ' draft', 'pending', 'rejected', 'approved' ) ) ) {45 if ( in_array( $post->post_status, array( 'new', 'draft', 'pending', 'rejected', 'approved' ) ) ) { 46 46 $statuses = array_merge( $statuses, array( 'approved', 'rejected' ) ); 47 47 } else { 48 $statuses = array( 'publish', 'disabled', 'closed' );48 $statuses = array( 'publish', 'disabled', 'closed', 'pending' ); 49 49 } 50 50 }
Note: See TracChangeset
for help on using the changeset viewer.