Changeset 2930
- Timestamp:
- 04/11/2016 01:42:53 PM (9 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-capabilities.php
r2830 r2930 16 16 * @param int $user_id The user ID. 17 17 * @param array $context Adds the context to the cap. Typically the object ID. 18 * @return array Primitive caps. 18 19 */ 19 20 public static function map_meta_cap( $required_caps, $cap, $user_id, $context ) { … … 81 82 $reviewer = array_merge( $committer, array( 82 83 'plugin_edit_pending' => true, 83 'plugin_approve' => true, 84 'plugin_reject' => true, 84 'plugin_review' => true, 85 85 ) ); 86 86 … … 88 88 'plugin_add_committer' => true, 89 89 'plugin_edit_others' => true, 90 'plugin_approve' => true, 91 'plugin_reject' => true, 90 92 'plugin_disable' => true, 91 93 'plugin_close' => true, -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r2925 r2930 34 34 if ( defined( 'WP_ADMIN' ) && WP_ADMIN ) { 35 35 Admin\Customizations::instance(); 36 37 add_action( 'transition_post_status', array( 'Admin\Status_Transitions', 'instance' ) ); 36 38 } 37 39 … … 76 78 'edit_posts' => 'plugin_dashboard_access', 77 79 'edit_others_posts' => 'plugin_edit_others', 80 'publish_posts' => 'plugin_approve', 78 81 'read_private_posts' => 'do_not_allow', 79 82 'delete_posts' => 'do_not_allow', 80 'create_posts' => 'do_not_allow' 83 'create_posts' => 'do_not_allow', 81 84 ) 82 85 ) ); … … 125 128 'label' => _x( 'Pending', 'plugin status', 'wporg-plugins' ), 126 129 'public' => false, 127 'show_in_admin_status_list' => current_user_can( 'plugin_ approve' ),130 'show_in_admin_status_list' => current_user_can( 'plugin_review' ), 128 131 'label_count' => _n_noop( 'Pending <span class="count">(%s)</span>', 'Pending <span class="count">(%s)</span>', 'wporg-plugins' ), 129 132 ) ); -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/tools/class-svn.php
r2649 r2930 8 8 */ 9 9 class SVN { 10 11 public static function add( $dirs, $args = array() ) { 12 return true; 13 } 10 14 11 15 /** … … 82 86 } 83 87 88 public static function mkdir( $dirs, $args = array() ) { 89 return true; 90 } 91 84 92 /** 85 93 * Parse and escape the provided SVN arguements for usage on the CLI.
Note: See TracChangeset
for help on using the changeset viewer.