diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php index c2e0db83c5..d5150d5cc4 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php @@ -24,6 +24,14 @@ class WP_REST_Users_Controller extends WP_REST_Controller { */ protected $meta; + /** + * Whether the controller supports batching. + * + * @since 6.6.0 + * @var array + */ + protected $allow_batch = array( 'v1' => true ); + /** * Constructor. * @@ -61,7 +69,8 @@ class WP_REST_Users_Controller extends WP_REST_Controller { 'permission_callback' => array( $this, 'create_item_permissions_check' ), 'args' => $this->get_endpoint_args_for_item_schema( WP_REST_Server::CREATABLE ), ), - 'schema' => array( $this, 'get_public_item_schema' ), + 'allow_batch' => $this->allow_batch, + 'schema' => array( $this, 'get_public_item_schema' ), ) ); @@ -107,7 +116,8 @@ class WP_REST_Users_Controller extends WP_REST_Controller { ), ), ), - 'schema' => array( $this, 'get_public_item_schema' ), + 'allow_batch' => $this->allow_batch, + 'schema' => array( $this, 'get_public_item_schema' ), ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index b3b0bd66d0..0f1e6c843a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-alpha-58282'; +$wp_version = '6.6-alpha-58283'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.