-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Remove all references to the navigation areas #41205
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.
This looks good to me. Thanks, @adamziel!
Size Change: 0 B Total Size: 1.24 MB ℹ️ View Unchanged
|
@@ -71,7 +71,6 @@ function gutenberg_reregister_core_block_types() { | |||
'latest-posts.php' => 'core/latest-posts', | |||
'loginout.php' => 'core/loginout', | |||
'navigation.php' => 'core/navigation', | |||
'navigation-area.php' => 'core/navigation-area', |
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.
Oh man how did we miss this 🤦
// which the Contributor level user does not have. | ||
// See: https://github.com/WordPress/gutenberg/blob/4cedaf0c4abb0aeac4bfd4289d63e9889efe9733/lib/class-wp-rest-block-navigation-areas-controller.php#L81-L91. | ||
// Todo: removed once Nav Areas are removed from the Gutenberg Plugin. | ||
expect( console ).toHaveErrored(); |
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.
🥳
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.
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.
Thanks for followup!
881c474
to
b23987d
Compare
What?
This PR removes the last mention of navigation-area block from the codebase.
The block was removed in #40645 and these few last places where it was still mentioned started causing trouble, e.g. in #41121.
Test plan
Confirm the CI checks are all nice and green.
cc @Mamaduka @getdave @scruffian @draganescu