Skip to content

Commit

Permalink
remove useless check for empty fallback navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu committed Apr 4, 2023
1 parent 1f365f1 commit 7ed8a81
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/block-library/src/navigation/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -471,10 +471,6 @@ function block_core_navigation_get_fallback_blocks() {
$fallback_blocks = ! empty( $maybe_fallback ) ? $maybe_fallback : $fallback_blocks;
}

// Normalizing blocks may result in an empty array of blocks if they were all `null` blocks.
// In this case default empty blocks.
$fallback_blocks = ! empty( $fallback_blocks ) ? $fallback_blocks : array();

/**
* Filters the fallback experience for the Navigation block.
*
Expand Down

0 comments on commit 7ed8a81

Please sign in to comment.