Make WordPress Core


Ignore:
Timestamp:
04/29/2022 04:53:55 PM (4 years ago)
Author:
johnbillion
Message:

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

Props zieladam, TimothyBlynJacobs, spacedmonkey, johnbillion

Fixes #53621

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php

    r52582 r53315  
    240240                'rating'              => array(
    241241                    'description' => __( 'The star rating of the block.' ),
    242                     'type'        => 'integer',
     242                    'type'        => 'number',
    243243                    'context'     => array( 'view' ),
    244244                ),
     
    250250                'active_installs'     => array(
    251251                    'description' => __( 'The number sites that have activated this block.' ),
    252                     'type'        => 'string',
     252                    'type'        => 'integer',
    253253                    'context'     => array( 'view' ),
    254254                ),
    255255                'author_block_rating' => array(
    256256                    'description' => __( 'The average rating of blocks published by the same author.' ),
    257                     'type'        => 'integer',
     257                    'type'        => 'number',
    258258                    'context'     => array( 'view' ),
    259259                ),
Note: See TracChangeset for help on using the changeset viewer.