Skip to content

Commit

Permalink
Tidy up comment
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Oct 26, 2021
1 parent a49b424 commit 63c685b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/navigation/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ function render_block_core_navigation( $attributes, $content, $block ) {

$parsed_blocks = parse_blocks( $navigation_post->post_content );

// For some reason 'parse_blocks' includes a null block with '\n\n' as the content?
// This code strips it.
// 'parse_blocks' includes a null block with '\n\n' as the content when
// it encounters whitespace. This code strips it.
$compacted_blocks = array_filter(
$parsed_blocks,
function( $block ) {
Expand Down

0 comments on commit 63c685b

Please sign in to comment.