- Timestamp:
- 11/15/2016 08:39:13 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
r39250 r39252 342 342 $comment = get_comment( $id ); 343 343 if ( empty( $comment ) ) { 344 return new WP_Error( 'rest_comment_invalid_id', __( 'Invalid comment id.' ), array( 'status' => 404 ) );344 return new WP_Error( 'rest_comment_invalid_id', __( 'Invalid comment ID.' ), array( 'status' => 404 ) ); 345 345 } 346 346 … … 348 348 $post = get_post( $comment->comment_post_ID ); 349 349 if ( empty( $post ) ) { 350 return new WP_Error( 'rest_post_invalid_id', __( 'Invalid post id.' ), array( 'status' => 404 ) );350 return new WP_Error( 'rest_post_invalid_id', __( 'Invalid post ID.' ), array( 'status' => 404 ) ); 351 351 } 352 352 } … … 612 612 613 613 if ( empty( $comment ) ) { 614 return new WP_Error( 'rest_comment_invalid_id', __( 'Invalid comment id.' ), array( 'status' => 404 ) );614 return new WP_Error( 'rest_comment_invalid_id', __( 'Invalid comment ID.' ), array( 'status' => 404 ) ); 615 615 } 616 616 … … 702 702 703 703 if ( ! $comment ) { 704 return new WP_Error( 'rest_comment_invalid_id', __( 'Invalid comment id.' ), array( 'status' => 404 ) );704 return new WP_Error( 'rest_comment_invalid_id', __( 'Invalid comment ID.' ), array( 'status' => 404 ) ); 705 705 } 706 706 … … 727 727 728 728 if ( empty( $comment ) ) { 729 return new WP_Error( 'rest_comment_invalid_id', __( 'Invalid comment id.' ), array( 'status' => 404 ) );729 return new WP_Error( 'rest_comment_invalid_id', __( 'Invalid comment ID.' ), array( 'status' => 404 ) ); 730 730 } 731 731
Note: See TracChangeset
for help on using the changeset viewer.