-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate navigation areas #36727
Deprecate navigation areas #36727
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. This is a good way to soft deprecate the block but also ensure it's not in 5.9.
Could you also raise a follow up Issues to remove the block entirely after a couple of versions of Gutenberg Plugin?
Size Change: +32 B (0%) Total Size: 1.1 MB
ℹ️ View Unchanged
|
* Deprecate navigation areas * Document deprecation notice
@@ -51,6 +52,10 @@ function NavigationAreaBlock( { attributes, setAttributes } ) { | |||
[ navigationAreas ] | |||
); | |||
|
|||
deprecated( 'wp.blockLibrary.NavigationArea', { | |||
since: '5.9', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has this block ever landed on Core as stable? If not, we should use a Gutenberg version here and specify a plugin: "gutenberg"
here as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has this block ever landed on Core as stable
Not it's not in a stable release of Core only Gutenberg Plugin. I'll spin up a follow up unless @adamziel gets there first.
Thanks for letting us know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@youknowriad Here is the followup #36777
Addresses feedback in #36727 (comment)
* Add plugin meta data to deprecation notice Addresses feedback in #36727 (comment) * Update packages/block-library/src/navigation-area/edit.js Co-authored-by: Adam Zielinski <[email protected]>
Yes I really think we need to hide the block. I guess it's only available for backwards compat so let's hide it. |
+1 to that, thank you for bringing it up. Here's a PR #37026. |
Description
Related to #36524. This PR deprecates navigation areas as @noisysocks suggested.
Test steps
Confirm that all editors load properly, and the navigation block is being saved and rendered as expected.