mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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
This commit is contained in:
parent
c0b76c19be
commit
df88d0dc8a
@ -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'] );
|
||||
|
||||
Loading…
Reference in New Issue
Block a user