Make WordPress Core


Ignore:
Timestamp:
11/23/2016 02:42:00 AM (8 years ago)
Author:
joehoyle
Message:

REST API: Update “resource” strings to use the appropriate nouns.

Props ramiy.
Fixes #38811.

File:
1 edited

Legend:

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

    r39322 r39342  
    19641964
    19651965        $params['after'] = array(
    1966             'description'        => __( 'Limit response to resources published after a given ISO8601 compliant date.' ),
     1966            'description'        => __( 'Limit response to posts published after a given ISO8601 compliant date.' ),
    19671967            'type'               => 'string',
    19681968            'format'             => 'date-time',
     
    19891989
    19901990        $params['before'] = array(
    1991             'description'        => __( 'Limit response to resources published before a given ISO8601 compliant date.' ),
     1991            'description'        => __( 'Limit response to posts published before a given ISO8601 compliant date.' ),
    19921992            'type'               => 'string',
    19931993            'format'             => 'date-time',
     
    20142014        if ( 'page' === $this->post_type || post_type_supports( $this->post_type, 'page-attributes' ) ) {
    20152015            $params['menu_order'] = array(
    2016                 'description'        => __( 'Limit result set to resources with a specific menu_order value.' ),
     2016                'description'        => __( 'Limit result set to posts with a specific menu_order value.' ),
    20172017                'type'               => 'integer',
    20182018            );
Note: See TracChangeset for help on using the changeset viewer.