Navigation: Improve readability by refactoring the logic around fallbacks #45039
Labels
[Block] Navigation
Affects the Navigation Block
[Type] Code Quality
Issues or PRs that relate to code quality
The navigation block does different things depending on the state of the user's site - do they have any wp_navigations? Do they have a classic menu? etc. It's very hard to understand this behaviour by reading the code. We should refactor it so that these direction switches are visible in code. For instance legacy placeholder, default behavior with uncontrolled blocks etc.
The text was updated successfully, but these errors were encountered: