Conversation
getdave
left a comment
There was a problem hiding this comment.
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
| ); | ||
|
|
||
| deprecated( 'wp.blockLibrary.NavigationArea', { | ||
| since: '5.9', |
There was a problem hiding this comment.
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.
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.
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 <adam@adamziel.com>
|
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.