Editor: Fix legacy group inner block wrappers in constrained layouts.

Reviewed by bernhard-reiter.

Props isabel_brison, noisysocks, andrewserong, poena, bernhard-reiter.
See #56467.
Built from https://develop.svn.wordpress.org/trunk@54633


git-svn-id: http://core.svn.wordpress.org/trunk@54185 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
davidbaumwald 2022-10-18 14:47:15 +00:00
parent bfbf1bc053
commit 6743ca5fc4
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.1-RC1-54632';
$wp_version = '6.1-RC1-54633';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.