Skip to content

Commit

Permalink
Navigation: Remove use of Gutenberg_Navigation_Fallback class (#58369)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored Jan 29, 2024
1 parent d45f032 commit 44df307
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/block-library/src/navigation/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -976,12 +976,7 @@ function block_core_navigation_get_fallback_blocks() {

// If `core/page-list` is not registered then return empty blocks.
$fallback_blocks = $registry->is_registered( 'core/page-list' ) ? $page_list_fallback : array();

if ( class_exists( 'WP_Navigation_Fallback' ) ) {
$navigation_post = WP_Navigation_Fallback::get_fallback();
} else {
$navigation_post = Gutenberg_Navigation_Fallback::get_fallback();
}
$navigation_post = WP_Navigation_Fallback::get_fallback();

// Use the first non-empty Navigation as fallback if available.
if ( $navigation_post ) {
Expand Down

1 comment on commit 44df307

@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 44df307.
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/7696362475
📝 Reported issues:

Please sign in to comment.