Navigation block erroneously requests /wp/v2/block-navigation-areas in WP 5.9 #37138
Labels
[Block] Navigation
Affects the Navigation Block
REST API Interaction
Related to REST API
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
The Navigation block is making a request to /wp/v2/block-navigation-areas.
gutenberg/packages/block-library/src/navigation/edit/index.js
Lines 112 to 117 in 2655693
This won't work when the block is used in WP 5.9 without the Gutenberg plugin active as that REST API endpoint does not exist.
Step-by-step reproduction instructions
/wp/v2/block-navigation-areas
.Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: