Changeset 39312
- Timestamp:
- 11/19/2016 02:15:10 AM (8 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/users.php
r39308 r39312 14 14 wp_die( 15 15 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 16 '<p>' . __( 'Sorry, you are not allowed to browseusers.' ) . '</p>',16 '<p>' . __( 'Sorry, you are not allowed to list users.' ) . '</p>', 17 17 403 18 18 ); -
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r39278 r39312 2477 2477 2478 2478 if ( ! current_user_can( 'list_users' ) ) 2479 return new IXR_Error( 401, __( 'Sorry, you are not allowed to browseusers.' ) );2479 return new IXR_Error( 401, __( 'Sorry, you are not allowed to list users.' ) ); 2480 2480 2481 2481 $query = array( 'fields' => 'all_with_meta' ); -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
r39309 r39312 149 149 150 150 if ( 'edit' === $request['context'] && ! current_user_can( 'list_users' ) ) { 151 return new WP_Error( 'rest_forbidden_context', __( 'Sorry, you are not allowed to edit users.' ), array( 'status' => rest_authorization_required_code() ) );151 return new WP_Error( 'rest_forbidden_context', __( 'Sorry, you are not allowed to list users.' ), array( 'status' => rest_authorization_required_code() ) ); 152 152 } 153 153
Note: See TracChangeset
for help on using the changeset viewer.