- Timestamp:
- 11/20/2016 11:45:59 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
r39310 r39321 612 612 613 613 if ( $comment && ! $this->check_edit_permission( $comment ) ) { 614 return new WP_Error( 'rest_cannot_edit', __( 'Sorry, you can notedit this comment.' ), array( 'status' => rest_authorization_required_code() ) );614 return new WP_Error( 'rest_cannot_edit', __( 'Sorry, you are not allowed to edit this comment.' ), array( 'status' => rest_authorization_required_code() ) ); 615 615 } 616 616 … … 727 727 728 728 if ( ! $this->check_edit_permission( $comment ) ) { 729 return new WP_Error( 'rest_cannot_delete', __( 'Sorry, you can notdelete this comment.' ), array( 'status' => rest_authorization_required_code() ) );729 return new WP_Error( 'rest_cannot_delete', __( 'Sorry, you are not allowed to delete this comment.' ), array( 'status' => rest_authorization_required_code() ) ); 730 730 } 731 731 return true;
Note: See TracChangeset
for help on using the changeset viewer.