Disable "block-nav-menus" feature for the purposes of removing the "experimental" status on the Navigation Editor #34444
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
For the purposes of removing the "experimental" status on the Navigation Editor, we agreed we would disable the theme opt-in from the screen until core developers have had enough time to improve the feature. That means no additional blocks.
Fixes #34265.
Steps to test this PR.
block-nav-menus
feature.If you theme doesn't support this feature you can "enable" it programmatically by modifying the plugins/gutenberg/lib/navigation-page.php file.
To do so go to that file and add this line
at the very beginning of the




gutenberg_navigation_init
's function body (around line 31).2. Go to the Gutenberg ->Navigation Editor -> Experiments page.
3. Enable the
Enable Navigation screen
setting, save the changes.4. Go to the Gutenberg -> Navigation page.
5. Create a new menu.
6. Click on the "Start empty" link.
7. Click on the plus sign.
Expected result:
Make sure you only see "regular" menu items like those on the screenshot below:
You shouldn't see block menu items, like
Social Links
block on the screenshot below:Types of changes
New feature / Breaking change.
Checklist:
*.native.js
files for terms that need renaming or removal).