mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Editor: Fix legacy group inner block wrappers in constrained layouts.
Reviewed by bernhard-reiter. Props isabel_brison, noisysocks, andrewserong, poena, bernhard-reiter. See #56467. git-svn-id: https://develop.svn.wordpress.org/trunk@54633 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -466,7 +466,7 @@ function wp_restore_group_inner_container( $block_content, $block ) {
|
||||
if (
|
||||
WP_Theme_JSON_Resolver::theme_has_support() ||
|
||||
1 === preg_match( $group_with_inner_container_regex, $block_content ) ||
|
||||
( isset( $block['attrs']['layout']['type'] ) && 'default' !== $block['attrs']['layout']['type'] )
|
||||
( isset( $block['attrs']['layout']['type'] ) && 'flex' === $block['attrs']['layout']['type'] )
|
||||
) {
|
||||
return $block_content;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user