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