Changeset 39252
- Timestamp:
- 11/15/2016 08:39:13 PM (8 years ago)
- Location:
- trunk/src/wp-includes/rest-api/endpoints
- Files:
-
- 2 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 -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r39251 r39252 424 424 425 425 if ( empty( $id ) || empty( $post->ID ) || $this->post_type !== $post->post_type ) { 426 return new WP_Error( 'rest_post_invalid_id', __( 'Invalid post id.' ), array( 'status' => 404 ) );426 return new WP_Error( 'rest_post_invalid_id', __( 'Invalid post ID.' ), array( 'status' => 404 ) ); 427 427 } 428 428 … … 620 620 621 621 if ( empty( $id ) || empty( $post->ID ) || $this->post_type !== $post->post_type ) { 622 return new WP_Error( 'rest_post_invalid_id', __( ' Post id is invalid.' ), array( 'status' => 404 ) );622 return new WP_Error( 'rest_post_invalid_id', __( 'Invalid post ID.' ), array( 'status' => 404 ) ); 623 623 } 624 624 … … 731 731 732 732 if ( empty( $id ) || empty( $post->ID ) || $this->post_type !== $post->post_type ) { 733 return new WP_Error( 'rest_post_invalid_id', __( 'Invalid post id.' ), array( 'status' => 404 ) );733 return new WP_Error( 'rest_post_invalid_id', __( 'Invalid post ID.' ), array( 'status' => 404 ) ); 734 734 } 735 735
Note: See TracChangeset
for help on using the changeset viewer.