Make WordPress Core


Ignore:
Timestamp:
10/11/2022 04:38:30 PM (20 months ago)
Author:
hellofromTonya
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-theme-json-resolver.php

    r54408 r54491  
    273273        $registry = WP_Block_Type_Registry::get_instance();
    274274        $blocks   = $registry->get_all_registered();
    275         $config   = array( 'version' => 1 );
     275        $config   = array( 'version' => 2 );
    276276        foreach ( $blocks as $block_name => $block_type ) {
    277277            if ( isset( $block_type->supports['__experimentalStyle'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.