-
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
Navigation: Hide post attributes meta box #36358
Conversation
I was just trying to test this and couldn't replicate the issue on trunk (or on this branch). Tried TT1 Blocks, TwentyTwentyTwo on WordPress Version 5.8.1 and 5.9 alpha following the test instructions over at #36308. I created a new navigation menu in both the site and post editor, then edited the menu from Could be just me! Am I missing something? Thanks! |
Thanks for testing, @ramonjd. Sorry, I forgot to mention that you'll need to create a custom template(s). It is when the second condition for this meta box goes into effect. |
f358d62
to
c6b2ee3
Compare
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 @Mamaduka
The attributes are also conditionally enabled when a site has custom templates.
I probably should have read the comments more closely before diving in 🤦♀️
LGTM!
Thank you, @ramonjd. |
cc @andrewserong in case this needs to be cherry-picked in 11.9 since it's on the 5.9 must-have list. 🙇 |
* Navigation: Hide post attributes metabox * Update comment
Cherry picked into the Gutenberg 11.9 release in: cd3ce67 |
* Navigation: Hide post attributes metabox * Update comment
Description
Disables "Post Attributes" for wp_navigation post type.
The attributes are also conditionally enabled when a site has custom templates. Block Theme templates can be available for every post type.
You can find the condition here: https://github.com/WordPress/wordpress-develop/blob/f22abe76100ed3647392e5b58a926e7e081d7736/src/wp-admin/includes/meta-boxes.php#L1504-L1506
Fixes #36308
How has this been tested?
Screenshots
Types of changes
Bugfix
Checklist:
*.native.js
files for terms that need renaming or removal).