Make WordPress Core


Ignore:
Timestamp:
05/25/2021 01:11:55 PM (4 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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                    ),
Note: See TracChangeset for help on using the changeset viewer.