- Timestamp:
- 11/18/2016 11:52:21 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
r39278 r39304 516 516 517 517 if ( ! current_user_can( 'edit_user', $id ) ) { 518 return new WP_Error( 'rest_cannot_edit', __( 'Sorry, you are not allowed to edit resource.' ), array( 'status' => rest_authorization_required_code() ) );518 return new WP_Error( 'rest_cannot_edit', __( 'Sorry, you are not allowed to edit this resource.' ), array( 'status' => rest_authorization_required_code() ) ); 519 519 } 520 520
Note: See TracChangeset
for help on using the changeset viewer.