mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user