REST API: Fix incorrect casing of patterns endpoint schema properties

Follow-up [53154].

Props talldanwp.
See #55505.


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


git-svn-id: http://core.svn.wordpress.org/trunk@52760 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
gziolo 2022-04-13 07:06:17 +00:00
parent 74dcee85d0
commit 4549da16cc
2 changed files with 3 additions and 3 deletions

View File

@ -160,13 +160,13 @@ class WP_REST_Block_Patterns_Controller extends WP_REST_Controller {
'readonly' => true, 'readonly' => true,
'context' => array( 'view', 'edit', 'embed' ), 'context' => array( 'view', 'edit', 'embed' ),
), ),
'viewport_Width' => array( 'viewport_width' => array(
'description' => __( 'The pattern viewport width for inserter preview.' ), 'description' => __( 'The pattern viewport width for inserter preview.' ),
'type' => 'number', 'type' => 'number',
'readonly' => true, 'readonly' => true,
'context' => array( 'view', 'edit', 'embed' ), 'context' => array( 'view', 'edit', 'embed' ),
), ),
'block_Types' => array( 'block_types' => array(
'description' => __( 'Block types that the pattern is intended to be used with.' ), 'description' => __( 'Block types that the pattern is intended to be used with.' ),
'type' => 'array', 'type' => 'array',
'readonly' => true, 'readonly' => true,

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.0-beta1-53170'; $wp_version = '6.0-beta1-53171';
/** /**
* 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.