Make WordPress Core

Changeset 51000


Ignore:
Timestamp:
05/25/2021 01:11:55 PM (5 years ago)
Author:
SergeyBiryukov
Message:

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

This updates route arguments and schema descriptions to use more specific object types for clarity.

Follow-up to [39342].

Props lephleg, jnylen0.
Fixes #40720.

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

Legend:

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

    r50114 r51000  
    643643
    644644        /**
    645          * Prepares links for the object.
     645         * Prepares links for the request.
    646646         *
    647647         * @since 5.6.0
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php

    r50810 r51000  
    3535                                'args'                => array(
    3636                                        'id'     => array(
    37                                                 'description' => __( 'Unique identifier for the object.' ),
     37                                                'description' => __( 'Unique identifier for the attachment.' ),
    3838                                                'type'        => 'integer',
    3939                                        ),
    … …  
    889889                        'properties'  => array(
    890890                                'raw'      => array(
    891                                         'description' => __( 'Description for the object, as it exists in the database.' ),
     891                                        'description' => __( 'Description for the attachment, as it exists in the database.' ),
    892892                                        'type'        => 'string',
    893893                                        'context'     => array( 'edit' ),
    894894                                ),
    895895                                'rendered' => array(
    896                                         'description' => __( 'HTML description for the object, transformed for display.' ),
     896                                        'description' => __( 'HTML description for the attachment, transformed for display.' ),
    897897                                        'type'        => 'string',
    898898                                        'context'     => array( 'view', 'edit' ),
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php

    r49610 r51000  
    8787                                'args'   => array(
    8888                                        'parent' => array(
    89                                                 'description' => __( 'The ID for the parent of the object.' ),
     89                                                'description' => __( 'The ID for the parent of the autosave.' ),
    9090                                                'type'        => 'integer',
    9191                                        ),
    … …  
    113113                                'args'   => array(
    114114                                        'parent' => array(
    115                                                 'description' => __( 'The ID for the parent of the object.' ),
     115                                                'description' => __( 'The ID for the parent of the autosave.' ),
    116116                                                'type'        => 'integer',
    117117                                        ),
    118118                                        'id'     => array(
    119                                                 'description' => __( 'The ID for the object.' ),
     119                                                'description' => __( 'The ID for the autosave.' ),
    120120                                                'type'        => 'integer',
    121121                                        ),
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php

    r50632 r51000  
    4646
    4747        /**
    48          * Registers the routes for the objects of the controller.
     48         * Registers the routes for block types.
    4949         *
    5050         * @since 5.5.0
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php

    r49955 r51000  
    3838
    3939        /**
    40          * Registers the routes for the objects of the controller.
     40         * Registers the routes for comments.
    4141         *
    4242         * @since 4.7.0
    … …  
    7272                                'args'   => array(
    7373                                        'id' => array(
    74                                                 'description' => __( 'Unique identifier for the object.' ),
     74                                                'description' => __( 'Unique identifier for the comment.' ),
    7575                                                'type'        => 'integer',
    7676                                        ),
    … …  
    13821382                        'properties' => array(
    13831383                                'id'                => array(
    1384                                         'description' => __( 'Unique identifier for the object.' ),
     1384                                        'description' => __( 'Unique identifier for the comment.' ),
    13851385                                        'type'        => 'integer',
    13861386                                        'context'     => array( 'view', 'edit', 'embed' ),
    … …  
    13931393                                ),
    13941394                                'author_email'      => array(
    1395                                         'description' => __( 'Email address for the object author.' ),
     1395                                        'description' => __( 'Email address for the comment author.' ),
    13961396                                        'type'        => 'string',
    13971397                                        'format'      => 'email',
    … …  
    14031403                                ),
    14041404                                'author_ip'         => array(
    1405                                         'description' => __( 'IP address for the object author.' ),
     1405                                        'description' => __( 'IP address for the comment author.' ),
    14061406                                        'type'        => 'string',
    14071407                                        'format'      => 'ip',
    … …  
    14091409                                ),
    14101410                                'author_name'       => array(
    1411                                         'description' => __( 'Display name for the object author.' ),
     1411                                        'description' => __( 'Display name for the comment author.' ),
    14121412                                        'type'        => 'string',
    14131413                                        'context'     => array( 'view', 'edit', 'embed' ),
    … …  
    14171417                                ),
    14181418                                'author_url'        => array(
    1419                                         'description' => __( 'URL for the object author.' ),
     1419                                        'description' => __( 'URL for the comment author.' ),
    14201420                                        'type'        => 'string',
    14211421                                        'format'      => 'uri',
    … …  
    14231423                                ),
    14241424                                'author_user_agent' => array(
    1425                                         'description' => __( 'User agent for the object author.' ),
     1425                                        'description' => __( 'User agent for the comment author.' ),
    14261426                                        'type'        => 'string',
    14271427                                        'context'     => array( 'edit' ),
    … …  
    14311431                                ),
    14321432                                'content'           => array(
    1433                                         'description' => __( 'The content for the object.' ),
     1433                                        'description' => __( 'The content for the comment.' ),
    14341434                                        'type'        => 'object',
    14351435                                        'context'     => array( 'view', 'edit', 'embed' ),
    … …  
    14401440                                        'properties'  => array(
    14411441                                                'raw'      => array(
    1442                                                         'description' => __( 'Content for the object, as it exists in the database.' ),
     1442                                                        'description' => __( 'Content for the comment, as it exists in the database.' ),
    14431443                                                        'type'        => 'string',
    14441444                                                        'context'     => array( 'edit' ),
    14451445                                                ),
    14461446                                                'rendered' => array(
    1447                                                         'description' => __( 'HTML content for the object, transformed for display.' ),
     1447                                                        'description' => __( 'HTML content for the comment, transformed for display.' ),
    14481448                                                        'type'        => 'string',
    14491449                                                        'context'     => array( 'view', 'edit', 'embed' ),
    … …  
    14531453                                ),
    14541454                                'date'              => array(
    1455                                         'description' => __( "The date the object was published, in the site's timezone." ),
     1455                                        'description' => __( "The date the comment was published, in the site's timezone." ),
    14561456                                        'type'        => 'string',
    14571457                                        'format'      => 'date-time',
    … …  
    14591459                                ),
    14601460                                'date_gmt'          => array(
    1461                                         'description' => __( 'The date the object was published, as GMT.' ),
     1461                                        'description' => __( 'The date the comment was published, as GMT.' ),
    14621462                                        'type'        => 'string',
    14631463                                        'format'      => 'date-time',
    … …  
    14651465                                ),
    14661466                                'link'              => array(
    1467                                         'description' => __( 'URL to the object.' ),
     1467                                        'description' => __( 'URL to the comment.' ),
    14681468                                        'type'        => 'string',
    14691469                                        'format'      => 'uri',
    … …  
    14721472                                ),
    14731473                                'parent'            => array(
    1474                                         'description' => __( 'The ID for the parent of the object.' ),
     1474                                        'description' => __( 'The ID for the parent of the comment.' ),
    14751475                                        'type'        => 'integer',
    14761476                                        'context'     => array( 'view', 'edit', 'embed' ),
    … …  
    14841484                                ),
    14851485                                'status'            => array(
    1486                                         'description' => __( 'State of the object.' ),
     1486                                        'description' => __( 'State of the comment.' ),
    14871487                                        'type'        => 'string',
    14881488                                        'context'     => array( 'view', 'edit' ),
    … …  
    14921492                                ),
    14931493                                'type'              => array(
    1494                                         'description' => __( 'Type of Comment for the object.' ),
     1494                                        'description' => __( 'Type of the comment.' ),
    14951495                                        'type'        => 'string',
    14961496                                        'context'     => array( 'view', 'edit', 'embed' ),
    … …  
    15161516
    15171517                        $schema['properties']['author_avatar_urls'] = array(
    1518                                 'description' => __( 'Avatar URLs for the object author.' ),
     1518                                'description' => __( 'Avatar URLs for the comment author.' ),
    15191519                                'type'        => 'object',
    15201520                                'context'     => array( 'view', 'edit', 'embed' ),
    … …  
    16121612
    16131613                $query_params['orderby'] = array(
    1614                         'description' => __( 'Sort collection by object attribute.' ),
     1614                        'description' => __( 'Sort collection by comment attribute.' ),
    16151615                        'type'        => 'string',
    16161616                        'default'     => 'date_gmt',
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php

    r49955 r51000  
    2828
    2929        /**
    30          * Registers the routes for the objects of the controller.
     30         * Registers the routes for post statuses.
    3131         *
    3232         * @since 4.7.0
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php

    r49610 r51000  
    2828
    2929        /**
    30          * Registers the routes for the objects of the controller.
     30         * Registers the routes for post types.
    3131         *
    3232         * @since 4.7.0
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

    r50717 r51000  
    5757
    5858        /**
    59          * Registers the routes for the objects of the controller.
     59         * Registers the routes for posts.
    6060         *
    6161         * @since 4.7.0
    … …  
    101101                                'args'   => array(
    102102                                        'id' => array(
    103                                                 'description' => __( 'Unique identifier for the object.' ),
     103                                                'description' => __( 'Unique identifier for the post.' ),
    104104                                                'type'        => 'integer',
    105105                                        ),
    … …  
    21542154                        'properties' => array(
    21552155                                'date'         => array(
    2156                                         'description' => __( "The date the object was published, in the site's timezone." ),
     2156                                        'description' => __( "The date the post was published, in the site's timezone." ),
    21572157                                        'type'        => array( 'string', 'null' ),
    21582158                                        'format'      => 'date-time',
    … …  
    21602160                                ),
    21612161                                'date_gmt'     => array(
    2162                                         'description' => __( 'The date the object was published, as GMT.' ),
     2162                                        'description' => __( 'The date the post was published, as GMT.' ),
    21632163                                        'type'        => array( 'string', 'null' ),
    21642164                                        'format'      => 'date-time',
    … …  
    21662166                                ),
    21672167                                'guid'         => array(
    2168                                         'description' => __( 'The globally unique identifier for the object.' ),
     2168                                        'description' => __( 'The globally unique identifier for the post.' ),
    21692169                                        'type'        => 'object',
    21702170                                        'context'     => array( 'view', 'edit' ),
    … …  
    21722172                                        'properties'  => array(
    21732173                                                'raw'      => array(
    2174                                                         'description' => __( 'GUID for the object, as it exists in the database.' ),
     2174                                                        'description' => __( 'GUID for the post, as it exists in the database.' ),
    21752175                                                        'type'        => 'string',
    21762176                                                        'context'     => array( 'edit' ),
    … …  
    21782178                                                ),
    21792179                                                'rendered' => array(
    2180                                                         'description' => __( 'GUID for the object, transformed for display.' ),
     2180                                                        'description' => __( 'GUID for the post, transformed for display.' ),
    21812181                                                        'type'        => 'string',
    21822182                                                        'context'     => array( 'view', 'edit' ),
    … …  
    21862186                                ),
    21872187                                'id'           => array(
    2188                                         'description' => __( 'Unique identifier for the object.' ),
     2188                                        'description' => __( 'Unique identifier for the post.' ),
    21892189                                        'type'        => 'integer',
    21902190                                        'context'     => array( 'view', 'edit', 'embed' ),
    … …  
    21922192                                ),
    21932193                                'link'         => array(
    2194                                         'description' => __( 'URL to the object.' ),
     2194                                        'description' => __( 'URL to the post.' ),
    21952195                                        'type'        => 'string',
    21962196                                        'format'      => 'uri',
    … …  
    21992199                                ),
    22002200                                'modified'     => array(
    2201                                         'description' => __( "The date the object was last modified, in the site's timezone." ),
     2201                                        'description' => __( "The date the post was last modified, in the site's timezone." ),
    22022202                                        'type'        => 'string',
    22032203                                        'format'      => 'date-time',
    … …  
    22062206                                ),
    22072207                                'modified_gmt' => array(
    2208                                         'description' => __( 'The date the object was last modified, as GMT.' ),
     2208                                        'description' => __( 'The date the post was last modified, as GMT.' ),
    22092209                                        'type'        => 'string',
    22102210                                        'format'      => 'date-time',
    … …  
    22132213                                ),
    22142214                                'slug'         => array(
    2215                                         'description' => __( 'An alphanumeric identifier for the object unique to its type.' ),
     2215                                        'description' => __( 'An alphanumeric identifier for the post unique to its type.' ),
    22162216                                        'type'        => 'string',
    22172217                                        'context'     => array( 'view', 'edit', 'embed' ),
    … …  
    22212221                                ),
    22222222                                'status'       => array(
    2223                                         'description' => __( 'A named status for the object.' ),
     2223                                        'description' => __( 'A named status for the post.' ),
    22242224                                        'type'        => 'string',
    22252225                                        'enum'        => array_keys( get_post_stati( array( 'internal' => false ) ) ),
    … …  
    22302230                                ),
    22312231                                'type'         => array(
    2232                                         'description' => __( 'Type of Post for the object.' ),
     2232                                        'description' => __( 'Type of post.' ),
    22332233                                        'type'        => 'string',
    22342234                                        'context'     => array( 'view', 'edit', 'embed' ),
    … …  
    22462246                if ( is_post_type_viewable( $post_type_obj ) && $post_type_obj->public ) {
    22472247                        $schema['properties']['permalink_template'] = array(
    2248                                 'description' => __( 'Permalink template for the object.' ),
     2248                                'description' => __( 'Permalink template for the post.' ),
    22492249                                'type'        => 'string',
    22502250                                'context'     => array( 'edit' ),
    … …  
    22532253
    22542254                        $schema['properties']['generated_slug'] = array(
    2255                                 'description' => __( 'Slug automatically generated from the object title.' ),
     2255                                'description' => __( 'Slug automatically generated from the post title.' ),
    22562256                                'type'        => 'string',
    22572257                                'context'     => array( 'edit' ),
    … …  
    22622262                if ( $post_type_obj->hierarchical ) {
    22632263                        $schema['properties']['parent'] = array(
    2264                                 'description' => __( 'The ID for the parent of the object.' ),
     2264                                'description' => __( 'The ID for the parent of the post.' ),
    22652265                                'type'        => 'integer',
    22662266                                'context'     => array( 'view', 'edit' ),
    … …  
    23232323                                case 'title':
    23242324                                        $schema['properties']['title'] = array(
    2325                                                 'description' => __( 'The title for the object.' ),
     2325                                                'description' => __( 'The title for the post.' ),
    23262326                                                'type'        => 'object',
    23272327                                                'context'     => array( 'view', 'edit', 'embed' ),
    … …  
    23322332                                                'properties'  => array(
    23332333                                                        'raw'      => array(
    2334                                                                 'description' => __( 'Title for the object, as it exists in the database.' ),
     2334                                                                'description' => __( 'Title for the post, as it exists in the database.' ),
    23352335                                                                'type'        => 'string',
    23362336                                                                'context'     => array( 'edit' ),
    23372337                                                        ),
    23382338                                                        'rendered' => array(
    2339                                                                 'description' => __( 'HTML title for the object, transformed for display.' ),
     2339                                                                'description' => __( 'HTML title for the post, transformed for display.' ),
    23402340                                                                'type'        => 'string',
    23412341                                                                'context'     => array( 'view', 'edit', 'embed' ),
    … …  
    23482348                                case 'editor':
    23492349                                        $schema['properties']['content'] = array(
    2350                                                 'description' => __( 'The content for the object.' ),
     2350                                                'description' => __( 'The content for the post.' ),
    23512351                                                'type'        => 'object',
    23522352                                                'context'     => array( 'view', 'edit' ),
    … …  
    23572357                                                'properties'  => array(
    23582358                                                        'raw'           => array(
    2359                                                                 'description' => __( 'Content for the object, as it exists in the database.' ),
     2359                                                                'description' => __( 'Content for the post, as it exists in the database.' ),
    23602360                                                                'type'        => 'string',
    23612361                                                                'context'     => array( 'edit' ),
    23622362                                                        ),
    23632363                                                        'rendered'      => array(
    2364                                                                 'description' => __( 'HTML content for the object, transformed for display.' ),
     2364                                                                'description' => __( 'HTML content for the post, transformed for display.' ),
    23652365                                                                'type'        => 'string',
    23662366                                                                'context'     => array( 'view', 'edit' ),
    … …  
    23682368                                                        ),
    23692369                                                        'block_version' => array(
    2370                                                                 'description' => __( 'Version of the content block format used by the object.' ),
     2370                                                                'description' => __( 'Version of the content block format used by the post.' ),
    23712371                                                                'type'        => 'integer',
    23722372                                                                'context'     => array( 'edit' ),
    … …  
    23852385                                case 'author':
    23862386                                        $schema['properties']['author'] = array(
    2387                                                 'description' => __( 'The ID for the author of the object.' ),
     2387                                                'description' => __( 'The ID for the author of the post.' ),
    23882388                                                'type'        => 'integer',
    23892389                                                'context'     => array( 'view', 'edit', 'embed' ),
    … …  
    23932393                                case 'excerpt':
    23942394                                        $schema['properties']['excerpt'] = array(
    2395                                                 'description' => __( 'The excerpt for the object.' ),
     2395                                                'description' => __( 'The excerpt for the post.' ),
    23962396                                                'type'        => 'object',
    23972397                                                'context'     => array( 'view', 'edit', 'embed' ),
    … …  
    24022402                                                'properties'  => array(
    24032403                                                        'raw'       => array(
    2404                                                                 'description' => __( 'Excerpt for the object, as it exists in the database.' ),
     2404                                                                'description' => __( 'Excerpt for the post, as it exists in the database.' ),
    24052405                                                                'type'        => 'string',
    24062406                                                                'context'     => array( 'edit' ),
    24072407                                                        ),
    24082408                                                        'rendered'  => array(
    2409                                                                 'description' => __( 'HTML excerpt for the object, transformed for display.' ),
     2409                                                                'description' => __( 'HTML excerpt for the post, transformed for display.' ),
    24102410                                                                'type'        => 'string',
    24112411                                                                'context'     => array( 'view', 'edit', 'embed' ),
    … …  
    24242424                                case 'thumbnail':
    24252425                                        $schema['properties']['featured_media'] = array(
    2426                                                 'description' => __( 'The ID of the featured media for the object.' ),
     2426                                                'description' => __( 'The ID of the featured media for the post.' ),
    24272427                                                'type'        => 'integer',
    24282428                                                'context'     => array( 'view', 'edit', 'embed' ),
    … …  
    24322432                                case 'comments':
    24332433                                        $schema['properties']['comment_status'] = array(
    2434                                                 'description' => __( 'Whether or not comments are open on the object.' ),
     2434                                                'description' => __( 'Whether or not comments are open on the post.' ),
    24352435                                                'type'        => 'string',
    24362436                                                'enum'        => array( 'open', 'closed' ),
    … …  
    24382438                                        );
    24392439                                        $schema['properties']['ping_status']    = array(
    2440                                                 'description' => __( 'Whether or not the object can be pinged.' ),
     2440                                                'description' => __( 'Whether or not the post can be pinged.' ),
    24412441                                                'type'        => 'string',
    24422442                                                'enum'        => array( 'open', 'closed' ),
    … …  
    24472447                                case 'page-attributes':
    24482448                                        $schema['properties']['menu_order'] = array(
    2449                                                 'description' => __( 'The order of the object in relation to other object of its type.' ),
     2449                                                'description' => __( 'The order of the post in relation to other posts.' ),
    24502450                                                'type'        => 'integer',
    24512451                                                'context'     => array( 'view', 'edit' ),
    … …  
    24582458
    24592459                                        $schema['properties']['format'] = array(
    2460                                                 'description' => __( 'The format for the object.' ),
     2460                                                'description' => __( 'The format for the post.' ),
    24612461                                                'type'        => 'string',
    24622462                                                'enum'        => $formats,
    … …  
    24742474                if ( 'post' === $this->post_type ) {
    24752475                        $schema['properties']['sticky'] = array(
    2476                                 'description' => __( 'Whether or not the object should be treated as sticky.' ),
     2476                                'description' => __( 'Whether or not the post should be treated as sticky.' ),
    24772477                                'type'        => 'boolean',
    24782478                                'context'     => array( 'view', 'edit' ),
    … …  
    24812481
    24822482                $schema['properties']['template'] = array(
    2483                         'description' => __( 'The theme file to use to display the object.' ),
     2483                        'description' => __( 'The theme file to use to display the post.' ),
    24842484                        'type'        => 'string',
    24852485                        'context'     => array( 'view', 'edit' ),
    … …  
    25112511                        $schema['properties'][ $base ] = array(
    25122512                                /* translators: %s: Taxonomy name. */
    2513                                 'description' => sprintf( __( 'The terms assigned to the object in the %s taxonomy.' ), $taxonomy->name ),
     2513                                'description' => sprintf( __( 'The terms assigned to the post in the %s taxonomy.' ), $taxonomy->name ),
    25142514                                'type'        => 'array',
    25152515                                'items'       => array(
    … …  
    27812781
    27822782                $query_params['orderby'] = array(
    2783                         'description' => __( 'Sort collection by object attribute.' ),
     2783                        'description' => __( 'Sort collection by post attribute.' ),
    27842784                        'type'        => 'string',
    27852785                        'default'     => 'date',
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php

    r49927 r51000  
    7676                                'args'   => array(
    7777                                        'parent' => array(
    78                                                 'description' => __( 'The ID for the parent of the object.' ),
     78                                                'description' => __( 'The ID for the parent of the revision.' ),
    7979                                                'type'        => 'integer',
    8080                                        ),
    … …  
    9696                                'args'   => array(
    9797                                        'parent' => array(
    98                                                 'description' => __( 'The ID for the parent of the object.' ),
     98                                                'description' => __( 'The ID for the parent of the revision.' ),
    9999                                                'type'        => 'integer',
    100100                                        ),
    101101                                        'id'     => array(
    102                                                 'description' => __( 'Unique identifier for the object.' ),
     102                                                'description' => __( 'Unique identifier for the revision.' ),
    103103                                                'type'        => 'integer',
    104104                                        ),
    … …  
    676676                        'properties' => array(
    677677                                'author'       => array(
    678                                         'description' => __( 'The ID for the author of the object.' ),
     678                                        'description' => __( 'The ID for the author of the revision.' ),
    679679                                        'type'        => 'integer',
    680680                                        'context'     => array( 'view', 'edit', 'embed' ),
    681681                                ),
    682682                                'date'         => array(
    683                                         'description' => __( "The date the object was published, in the site's timezone." ),
     683                                        'description' => __( "The date the revision was published, in the site's timezone." ),
    684684                                        'type'        => 'string',
    685685                                        'format'      => 'date-time',
    … …  
    687687                                ),
    688688                                'date_gmt'     => array(
    689                                         'description' => __( 'The date the object was published, as GMT.' ),
     689                                        'description' => __( 'The date the revision was published, as GMT.' ),
    690690                                        'type'        => 'string',
    691691                                        'format'      => 'date-time',
    … …  
    693693                                ),
    694694                                'guid'         => array(
    695                                         'description' => __( 'GUID for the object, as it exists in the database.' ),
     695                                        'description' => __( 'GUID for the revision, as it exists in the database.' ),
    696696                                        'type'        => 'string',
    697697                                        'context'     => array( 'view', 'edit' ),
    698698                                ),
    699699                                'id'           => array(
    700                                         'description' => __( 'Unique identifier for the object.' ),
     700                                        'description' => __( 'Unique identifier for the revision.' ),
    701701                                        'type'        => 'integer',
    702702                                        'context'     => array( 'view', 'edit', 'embed' ),
    703703                                ),
    704704                                'modified'     => array(
    705                                         'description' => __( "The date the object was last modified, in the site's timezone." ),
     705                                        'description' => __( "The date the revision was last modified, in the site's timezone." ),
    706706                                        'type'        => 'string',
    707707                                        'format'      => 'date-time',
    … …  
    709709                                ),
    710710                                'modified_gmt' => array(
    711                                         'description' => __( 'The date the object was last modified, as GMT.' ),
     711                                        'description' => __( 'The date the revision was last modified, as GMT.' ),
    712712                                        'type'        => 'string',
    713713                                        'format'      => 'date-time',
    … …  
    715715                                ),
    716716                                'parent'       => array(
    717                                         'description' => __( 'The ID for the parent of the object.' ),
     717                                        'description' => __( 'The ID for the parent of the revision.' ),
    718718                                        'type'        => 'integer',
    719719                                        'context'     => array( 'view', 'edit', 'embed' ),
    720720                                ),
    721721                                'slug'         => array(
    722                                         'description' => __( 'An alphanumeric identifier for the object unique to its type.' ),
     722                                        'description' => __( 'An alphanumeric identifier for the revision unique to its type.' ),
    723723                                        'type'        => 'string',
    724724                                        'context'     => array( 'view', 'edit', 'embed' ),
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-search-controller.php

    r49089 r51000  
    8383
    8484        /**
    85          * Registers the routes for the objects of the controller.
     85         * Registers the routes for the search controller.
    8686         *
    8787         * @since 5.0.0
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php

    r49955 r51000  
    2828
    2929        /**
    30          * Registers the routes for the objects of the controller.
     30         * Registers the routes for the site's settings.
    3131         *
    3232         * @since 4.7.0
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php

    r47122 r51000  
    2828
    2929        /**
    30          * Registers the routes for the objects of the controller.
     30         * Registers the routes for taxonomies.
    3131         *
    3232         * @since 4.7.0
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php

    r50505 r51000  
    6666
    6767        /**
    68          * Registers the routes for the objects of the controller.
     68         * Registers the routes for terms.
    6969         *
    7070         * @since 4.7.0
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php

    r49955 r51000  
    2828
    2929        /**
    30          * Registers the routes for the objects of the controller.
     30         * Registers the routes for themes.
    3131         *
    3232         * @since 5.0.0
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php

    r49955 r51000  
    3838
    3939        /**
    40          * Registers the routes for the objects of the controller.
     40         * Registers the routes for users.
    4141         *
    4242         * @since 4.7.0
    … …  
    15211521                $query_params['orderby'] = array(
    15221522                        'default'     => 'name',
    1523                         'description' => __( 'Sort collection by object attribute.' ),
     1523                        'description' => __( 'Sort collection by user attribute.' ),
    15241524                        'enum'        => array(
    15251525                                'id',
  • trunk/src/wp-includes/rest-api/fields/class-wp-rest-comment-meta-fields.php

    r46586 r51000  
    1818
    1919        /**
    20          * Retrieves the object type for comment meta.
     20         * Retrieves the comment type for comment meta.
    2121         *
    2222         * @since 4.7.0
    … …  
    2929
    3030        /**
    31          * Retrieves the object meta subtype.
     31         * Retrieves the comment meta subtype.
    3232         *
    3333         * @since 4.9.8
  • trunk/src/wp-includes/rest-api/fields/class-wp-rest-post-meta-fields.php

    r46586 r51000  
    3737
    3838        /**
    39          * Retrieves the object meta type.
     39         * Retrieves the post meta type.
    4040         *
    4141         * @since 4.7.0
    … …  
    4848
    4949        /**
    50          * Retrieves the object meta subtype.
     50         * Retrieves the post meta subtype.
    5151         *
    5252         * @since 4.9.8
  • trunk/src/wp-includes/rest-api/fields/class-wp-rest-term-meta-fields.php

    r46586 r51000  
    3737
    3838        /**
    39          * Retrieves the object meta type.
     39         * Retrieves the term meta type.
    4040         *
    4141         * @since 4.7.0
    … …  
    4848
    4949        /**
    50          * Retrieves the object meta subtype.
     50         * Retrieves the term meta subtype.
    5151         *
    5252         * @since 4.9.8
  • trunk/src/wp-includes/rest-api/fields/class-wp-rest-user-meta-fields.php

    r46586 r51000  
    1818
    1919        /**
    20          * Retrieves the object meta type.
     20         * Retrieves the user meta type.
    2121         *
    2222         * @since 4.7.0
    … …  
    2929
    3030        /**
    31          * Retrieves the object meta subtype.
     31         * Retrieves the user meta subtype.
    3232         *
    3333         * @since 4.9.8
Note: See TracChangeset for help on using the changeset viewer.