Changeset 3093 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-capabilities.php
- Timestamp:
- 05/06/2016 06:56:40 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-capabilities.php
r3080 r3093 38 38 39 39 } else { 40 if ( 'pending' == $post->post_status ) { 41 $required_caps[] = 'plugin_edit_pending'; 40 41 if ( in_array( $post->post_status, array( 'draft', 'pending' ) ) ) { 42 $required_caps[] = 'plugin_review'; 42 43 43 44 } else { 44 $required_caps[] = 'plugin_ edit_others';45 $required_caps[] = 'plugin_approve'; 45 46 } 46 47 } … … 78 79 'plugin_set_tags' => true, 79 80 'plugin_add_committer' => true, 81 'plugin_edit_others' => true, 80 82 ); 81 83 … … 86 88 87 89 $admin = array_merge( $reviewer, array( 88 'plugin_add_committer' => true,89 'plugin_edit_others' => true,90 90 'plugin_approve' => true, 91 91 'plugin_reject' => true,
Note: See TracChangeset
for help on using the changeset viewer.