- Timestamp:
- 11/19/2016 01:45:30 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
r39304 r39309 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 view this resource with edit context.' ), array( 'status' => rest_authorization_required_code() ) );151 return new WP_Error( 'rest_forbidden_context', __( 'Sorry, you are not allowed to edit users.' ), array( 'status' => rest_authorization_required_code() ) ); 152 152 } 153 153
Note: See TracChangeset
for help on using the changeset viewer.