Make WordPress Core


Ignore:
Timestamp:
11/15/2016 08:39:13 PM (8 years ago)
Author:
SergeyBiryukov
Message:

REST API: Remove two duplicate strings, use the ones we already have.

See #38791.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

    r39251 r39252  
    424424
    425425        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 ) );
    427427        }
    428428
     
    620620
    621621        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 ) );
    623623        }
    624624
     
    731731
    732732        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 ) );
    734734        }
    735735
Note: See TracChangeset for help on using the changeset viewer.