[wp-trac] [WordPress Trac] #19038: Menu Items aren't deleting on page being trashed, only when deleted
WordPress Trac
wp-trac at lists.automattic.com
Tue Oct 25 12:04:52 UTC 2011
#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 dev-feedback |
------------------------------------+------------------------------
Changes (by solarissmoke):
* keywords: needs-patch => has-patch dev-feedback
Comment:
This is because `_wp_delete_post_menu_item` is only hooked to the
`delete_post` action.
Patch adds the same hook to the trash action. Of course this means that if
you restore the post then the menu item has to be restored manually if you
still want it - but this seems better than having to delete the menu item
manually when you trash a post.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19038#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list