From df88d0dc8a15a1a46441e88689e3018a327f726e Mon Sep 17 00:00:00 2001 From: Tonya Mork Date: Tue, 11 Oct 2022 16:38:30 +0000 Subject: [PATCH] Editor: Fix version in WP_Theme_JSON_Resolver::get_block_data(). Introduced during the WP 6.1 alpha cycle, this commit fixes the version number from `1` to `2`. Follow-up to [54162]. Props oandregal. See #56467. git-svn-id: https://develop.svn.wordpress.org/trunk@54491 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-theme-json-resolver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-theme-json-resolver.php b/src/wp-includes/class-wp-theme-json-resolver.php index e97c31a4f5..b1a0d5198d 100644 --- a/src/wp-includes/class-wp-theme-json-resolver.php +++ b/src/wp-includes/class-wp-theme-json-resolver.php @@ -272,7 +272,7 @@ class WP_Theme_JSON_Resolver { public static function get_block_data() { $registry = WP_Block_Type_Registry::get_instance(); $blocks = $registry->get_all_registered(); - $config = array( 'version' => 1 ); + $config = array( 'version' => 2 ); foreach ( $blocks as $block_name => $block_type ) { if ( isset( $block_type->supports['__experimentalStyle'] ) ) { $config['styles']['blocks'][ $block_name ] = static::remove_json_comments( $block_type->supports['__experimentalStyle'] );