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.

git-svn-id: https://develop.svn.wordpress.org/trunk@51000 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2021-05-25 13:11:55 +00:00
parent 55572ad664
commit 3d5a37a9bc
19 changed files with 93 additions and 93 deletions
@@ -37,7 +37,7 @@ class WP_REST_Users_Controller extends WP_REST_Controller {
}
/**
* Registers the routes for the objects of the controller.
* Registers the routes for users.
*
* @since 4.7.0
*
@@ -1520,7 +1520,7 @@ class WP_REST_Users_Controller extends WP_REST_Controller {
$query_params['orderby'] = array(
'default' => 'name',
'description' => __( 'Sort collection by object attribute.' ),
'description' => __( 'Sort collection by user attribute.' ),
'enum' => array(
'id',
'include',