block_core_navigation_filter_out_empty_blocks
block_core_navigation_filter_out_empty_blocks ( $parsed_blocks )
Parameters:- (array) parsed_blocks the parsed blocks to be normalized.
Returns:- (array) the normalized parsed blocks.
Defined at: - Introduced in WordPress: —
- Deprecated in WordPress: —
Description
Filter out empty "null" blocks from the block list.'parse_blocks' includes a null block with '\n\n' as the content when
it encounters whitespace. This is not a bug but rather how the parser
is designed.