Make WordPress Core

Changeset 40606


Ignore:
Timestamp:
05/10/2017 07:40:56 PM (8 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.

Location:
trunk/src/wp-includes/rest-api/endpoints
Files:
4 edited

Legend:

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

    r39954 r40606  
    7777                    'context'          => $this->get_context_param( array( 'default' => 'view' ) ),
    7878                    'password' => array(
    79                         'description' => __( 'The password for the post if it is password protected.' ),
     79                        'description' => __( 'The password for the parent post of the comment (if the post is password protected).' ),
    8080                        'type'        => 'string',
    8181                    ),
     
    9999                    ),
    100100                    'password' => array(
    101                         'description' => __( 'The password for the post if it is password protected.' ),
     101                        'description' => __( 'The password for the parent post of the comment (if the post is password protected).' ),
    102102                        'type'        => 'string',
    103103                    ),
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

    r40605 r40606  
    21512151        if ( $post_type->hierarchical || 'attachment' === $this->post_type ) {
    21522152            $query_params['parent'] = array(
    2153                 'description'       => __( 'Limit result set to those of particular parent IDs.' ),
     2153                'description'       => __( 'Limit result set to items with particular parent IDs.' ),
    21542154                'type'              => 'array',
    21552155                'items'             => array(
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php

    r40601 r40606  
    1212 *
    1313 * @since 4.7.0
    14  *0
     14 *
    1515 * @see WP_REST_Controller
    1616 */
  • 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.