[wp-trac] [WordPress Trac] #19038: Menu Items aren't deleting on page being trashed, only when deleted
WordPress Trac
noreply at wordpress.org
Sun Dec 13 13:03:38 UTC 2015
#19038: Menu Items aren't deleting on page being trashed, only when deleted
-----------------------------------+------------------------------
Reporter: jeremyatignition | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: 3.2.1
Severity: normal | Resolution:
Keywords: has-patch ux-feedback | Focuses:
-----------------------------------+------------------------------
Changes (by swissspidy):
* keywords: has-patch dev-feedback needs-refresh => has-patch ux-feedback
Comment:
> The main goal is to have the menu item not show on the front end if it's
object was trashed. It would be nice to make it easy to reinstate that
menu item just by bringing the object back (as long as it's not removed
from the DB, obviously).
That's how it's currently working. When you trash a page, the menu item
isn't shown on the front-end.
[attachment:19038.diff] sets the 'Invalid' flag in the admin to any menu
items which have trashed parent objects. The same flag is set when the
post type does not exist anymore.
Needs UX review. Perhaps a red warning is too much in this case.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/19038#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list