mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
REST API: Clean up argument and property types.
There's a couple of places where we were missing type notes for arguments, which mainly affects documentation. Props jnylen0. Fixes #38792. git-svn-id: https://develop.svn.wordpress.org/trunk@39250 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -89,7 +89,10 @@ class WP_REST_Users_Controller extends WP_REST_Controller {
|
||||
'default' => false,
|
||||
'description' => __( 'Required to be true, as resource does not support trashing.' ),
|
||||
),
|
||||
'reassign' => array(),
|
||||
'reassign' => array(
|
||||
'type' => 'integer',
|
||||
'description' => __( 'Reassign the deleted user\'s posts and links to this user ID.' ),
|
||||
),
|
||||
),
|
||||
),
|
||||
'schema' => array( $this, 'get_public_item_schema' ),
|
||||
@@ -100,7 +103,7 @@ class WP_REST_Users_Controller extends WP_REST_Controller {
|
||||
'methods' => WP_REST_Server::READABLE,
|
||||
'callback' => array( $this, 'get_current_item' ),
|
||||
'args' => array(
|
||||
'context' => array(),
|
||||
'context' => $this->get_context_param( array( 'default' => 'view' ) ),
|
||||
),
|
||||
),
|
||||
array(
|
||||
@@ -119,7 +122,10 @@ class WP_REST_Users_Controller extends WP_REST_Controller {
|
||||
'default' => false,
|
||||
'description' => __( 'Required to be true, as resource does not support trashing.' ),
|
||||
),
|
||||
'reassign' => array(),
|
||||
'reassign' => array(
|
||||
'type' => 'integer',
|
||||
'description' => __( 'Reassign the deleted user\'s posts and links to this user ID.' ),
|
||||
),
|
||||
),
|
||||
),
|
||||
'schema' => array( $this, 'get_public_item_schema' ),
|
||||
|
||||
Reference in New Issue
Block a user