Changeset 2929 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-committers.php
- Timestamp:
- 04/11/2016 01:37:50 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-committers.php
r2789 r2929 40 40 41 41 check_ajax_referer( 'add-committer' ); 42 43 if ( ! current_user_can( 'plugin_add_committer', $post_id ) || 'publish' !== get_post_status( $post_id ) ) { 44 wp_die( -1 ); 45 } 46 42 47 global $post; 43 48 … … 51 56 ) ); 52 57 $response->send(); 53 }54 55 if ( ! current_user_can( 'plugin_add_committer', $post_id ) ) {56 wp_die( -1 );57 58 } 58 59 … … 89 90 check_ajax_referer( "remove-committer-$id" ); 90 91 92 if ( ! current_user_can( 'plugin_remove_committer', $post_id ) || 'publish' !== get_post_status( $post_id ) ) { 93 wp_die( -1 ); 94 } 95 91 96 $response = new \WP_Ajax_Response(); 92 97 $plugin_slug = get_post( $post_id )->post_name; … … 100 105 } 101 106 102 if ( ! current_user_can( 'plugin_remove_committer', $post_id ) ) {103 wp_die( -1 );104 }105 106 107 $result = Tools::revoke_plugin_committer( $plugin_slug, $committer ); 107 108
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)