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