Hide visilibility and status for navigation posts#36363
Hide visilibility and status for navigation posts#36363anton-vlasenko merged 2 commits intotrunkfrom
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.
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.jsfiles for terms that need renaming or removal).