Changeset 39304 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php
- 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-post-types-controller.php
r39257 r39304 128 128 129 129 if ( 'edit' === $request['context'] && ! current_user_can( $obj->cap->edit_posts ) ) { 130 return new WP_Error( 'rest_forbidden_context', __( 'Sorry, you are not allowed to managethis resource.' ), array( 'status' => rest_authorization_required_code() ) );130 return new WP_Error( 'rest_forbidden_context', __( 'Sorry, you are not allowed to edit this resource.' ), array( 'status' => rest_authorization_required_code() ) ); 131 131 } 132 132
Note: See TracChangeset
for help on using the changeset viewer.