Skip to content

Commit

Permalink
Fix fallback not rendering (#49576)
Browse files Browse the repository at this point in the history
* remove useless check for empty fallback navigation

* remove useless check for empty fallback navigation
  • Loading branch information
draganescu committed Apr 4, 2023
1 parent 988893a commit f5fd962
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( $maybe_fallback ) ? $maybe_fallback : array();

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

1 comment on commit f5fd962

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in f5fd962.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4610704187
📝 Reported issues:

Please sign in to comment.