Changeset 56055 for trunk/src/wp-includes/class-wp-theme-json.php
- Timestamp:
- 06/27/2023 07:23:04 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme-json.php
r56041 r56055 339 339 * @since 6.2.0 Added `dimensions.minHeight`, 'shadow.presets', 'shadow.defaultPresets', 340 340 * `position.fixed` and `position.sticky`. 341 * @since 6.3.0 Added support for `typography.textColumns` .341 * @since 6.3.0 Added support for `typography.textColumns`, removed `layout.definitions`. 342 342 * 343 343 * @var array … … 375 375 'layout' => array( 376 376 'contentSize' => null, 377 'definitions' => null,378 377 'wideSize' => null, 379 378 ), … … 1278 1277 if ( isset( $block_metadata['name'] ) ) { 1279 1278 $block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block_metadata['name'] ); 1280 if ( ! block_has_support( $block_type, array( ' __experimentalLayout' ), false ) ) {1279 if ( ! block_has_support( $block_type, array( 'layout' ), false ) && ! block_has_support( $block_type, array( '__experimentalLayout' ), false ) ) { 1281 1280 return $block_rules; 1282 1281 } … … 1287 1286 $has_fallback_gap_support = ! $has_block_gap_support; // This setting isn't useful yet: it exists as a placeholder for a future explicit fallback gap styles support. 1288 1287 $node = _wp_array_get( $this->theme_json, $block_metadata['path'], array() ); 1289 $layout_definitions = _wp_array_get( $this->theme_json, array( 'settings', 'layout', 'definitions' ), array());1288 $layout_definitions = wp_get_layout_definitions(); 1290 1289 $layout_selector_pattern = '/^[a-zA-Z0-9\-\.\ *+>:\(\)]*$/'; // Allow alphanumeric classnames, spaces, wildcard, sibling, child combinator and pseudo class selectors. 1291 1290
Note: See TracChangeset
for help on using the changeset viewer.