-
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
Hide visilibility and status for navigation posts #36363
Hide visilibility and status for navigation posts #36363
Conversation
c5590c6
to
161f6c9
Compare
I've tried to implement this using filters or actions, but it doesn't seem to be possible. |
Trac ticket for merging this PR into Core: https://core.trac.wordpress.org/ticket/54407 |
These fields are not appropriate for navigation posts.
161f6c9
to
6b5436e
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.
Followed test steps and I wasn't able to see the status settings.
Bug
🐞 One bug - I was still able to see the status via the "Quick Edit" link on the Post Listing screen. We should fix that in a followup.
Additional explorations
Whilst the UI isn't modify-able via a hook, I wonder if it's worth exploring a way to block the ability to modify a Nav Menu Post's status at a PHP level when the post is being updated. That way programmatic updates will also be blocked.
Thank you for the review, @getdave! I appreciate it. |
I will create a followup issue sometime today. |
@anton-vlasenko Should we backport this issue into WP 5.9 beta? |
@Mamaduka Yes, I think we should. |
* Hide visilibility and status for navigation posts. These fields are not appropriate for navigation posts. * Hide visibility and status for new posts too.
Description
Visiblity and status fields are not appropriate for navigation posts.
We should hide them.
Fixes #36309.
How has this been tested?
Appearance -> Navigation Menus
. Create a new menu.Types of changes
Bug fix
Screenshots:


Checklist:
*.native.js
files for terms that need renaming or removal).