Skip to content

Commit

Permalink
Revert "Handle innerContent too when removing innerBlocks (#46377)"
Browse files Browse the repository at this point in the history
This reverts commit 181b383.
  • Loading branch information
Alex Lende committed Dec 7, 2022
1 parent 181b383 commit 2aeff10
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/block-library/src/navigation/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,6 @@ function( $carry, $block ) use ( $allowed_blocks ) {
if ( isset( $block['blockName'] ) && in_array( $block['blockName'], $allowed_blocks, true ) ) {
if ( $block['innerBlocks'] ) {
$block['innerBlocks'] = block_core_navigation_filter_out_invalid_blocks( $block['innerBlocks'] );
if ( empty( $block['innerBlocks'] ) ) {
$block['innerContent'] = array( implode( $block['innerContent'] ) );
}
}
$carry[] = $block;
}
Expand Down

0 comments on commit 2aeff10

Please sign in to comment.