Make WordPress Core

Changeset 58708

Timestamp:
07/12/2024 01:32:24 AM (3 weeks ago)
Author:
isabel_brison
Message:

Editor: remove Group inner container from Grid variation in classic themes.

Updates the logic in the layout filter that replaces the Group block inner container in classic themes to exclude the Grid variation.

Props isabel_brison, aaronrobertshaw, andrewserong.
See #61635.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-supports/layout.php

    r58243 r58708  
    952952 *
    953953 * @since 5.8.0
     954
    954955 * @access private
    955956 *
     
    968969        wp_theme_has_theme_json() ||
    969970        1 === preg_match( $group_with_inner_container_regex, $block_content ) ||
    970         ( isset( $block['attrs']['layout']['type'] ) && 'flex' === $block['attrs']['layout']['type'] )
     971        ( isset( $block['attrs']['layout']['type'] ) && )
    971972    ) {
    972973        return $block_content;
Note: See TracChangeset for help on using the changeset viewer.