- Timestamp:
- 06/30/2020 11:34:58 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-comments-controller.php
r48154 r48228 2815 2815 2816 2816 /** 2817 * Block comments from being updated by returning WP_Error2817 * Blocks comments from being updated by returning WP_Error. 2818 2818 */ 2819 2819 public function _wp_update_comment_data_filter( $data, $comment, $commentarr ) { 2820 return new WP_Error( 'comment_wrong', __( 'wp_update_comment_data filter fails for this comment.' ), array( 'status' => 500 ) );2820 return new WP_Error( 'comment_wrong', 'wp_update_comment_data filter fails for this comment.', array( 'status' => 500 ) ); 2821 2821 } 2822 2822
Note: See TracChangeset
for help on using the changeset viewer.