Make WordPress Core


Ignore:
Timestamp:
05/10/2017 07:40:56 PM (5 years ago)
Author:
jnylen0
Message:

REST API: Improve a few more strings added after the 4.7 string freeze.

See #39178.

See also #40720 for potential follow-up steps.

File:
1 edited

Legend:

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

    r40377 r40606  
    397397        if ( isset( $request['parent'] ) ) {
    398398            if ( ! is_taxonomy_hierarchical( $this->taxonomy ) ) {
    399                 return new WP_Error( 'rest_taxonomy_not_hierarchical', __( 'Can not set parent term, taxonomy is not hierarchical.' ), array( 'status' => 400 ) );
     399                return new WP_Error( 'rest_taxonomy_not_hierarchical', __( 'Cannot set parent term, taxonomy is not hierarchical.' ), array( 'status' => 400 ) );
    400400            }
    401401
     
    503503        if ( isset( $request['parent'] ) ) {
    504504            if ( ! is_taxonomy_hierarchical( $this->taxonomy ) ) {
    505                 return new WP_Error( 'rest_taxonomy_not_hierarchical', __( 'Can not set parent term, taxonomy is not hierarchical.' ), array( 'status' => 400 ) );
     505                return new WP_Error( 'rest_taxonomy_not_hierarchical', __( 'Cannot set parent term, taxonomy is not hierarchical.' ), array( 'status' => 400 ) );
    506506            }
    507507
Note: See TracChangeset for help on using the changeset viewer.