- 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-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.