REST API: Correct the schema for the `wp/v2/block-directory/search` endpoint.

Props zieladam, TimothyBlynJacobs, spacedmonkey, johnbillion

Fixes #53621

Built from https://develop.svn.wordpress.org/trunk@53315


git-svn-id: http://core.svn.wordpress.org/trunk@52904 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn 2022-04-29 16:55:13 +00:00
parent 0b930401e0
commit 98846baff8
2 changed files with 4 additions and 4 deletions

View File

@ -239,7 +239,7 @@ class WP_REST_Block_Directory_Controller extends WP_REST_Controller {
), ),
'rating' => array( 'rating' => array(
'description' => __( 'The star rating of the block.' ), 'description' => __( 'The star rating of the block.' ),
'type' => 'integer', 'type' => 'number',
'context' => array( 'view' ), 'context' => array( 'view' ),
), ),
'rating_count' => array( 'rating_count' => array(
@ -249,12 +249,12 @@ class WP_REST_Block_Directory_Controller extends WP_REST_Controller {
), ),
'active_installs' => array( 'active_installs' => array(
'description' => __( 'The number sites that have activated this block.' ), 'description' => __( 'The number sites that have activated this block.' ),
'type' => 'string', 'type' => 'integer',
'context' => array( 'view' ), 'context' => array( 'view' ),
), ),
'author_block_rating' => array( 'author_block_rating' => array(
'description' => __( 'The average rating of blocks published by the same author.' ), 'description' => __( 'The average rating of blocks published by the same author.' ),
'type' => 'integer', 'type' => 'number',
'context' => array( 'view' ), 'context' => array( 'view' ),
), ),
'author_block_count' => array( 'author_block_count' => array(

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.0-beta3-53314'; $wp_version = '6.0-beta3-53315';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.