Moderator
Helen Hou-Sandi
(@helen)
Core Lead Developer and 4.0, 4.7, and 5.6 Release Lead
I think it’s been like this since nav menus were added, or at least I remember running into it a couple of times. I just tried it in 3.2.1 and it does the same thing – the menu item remains but it goes to a 404 because the page is in the trash.
Hmm. Should I read that then as it’s not going to get fixed in this release? 🙂
Moderator
Helen Hou-Sandi
(@helen)
Core Lead Developer and 4.0, 4.7, and 5.6 Release Lead
RC2 is awful late, so no 🙂 It’s also not really an alpha/beta thing, since it’s been happening since before 3.3. Here’s a ticket on the issue (delete from menu happens with the item’s actual deletion, not trashing), might be more related ones out there: http://core.trac.wordpress.org/ticket/19038
Honestly, I personally don’t really find this unexpected; I would probably be annoyed if my menu items disappeared just because I accidentally trashed something. I just tested and the menu item is removed when you permanently delete it. Unless this is happening for you differently?
It’s not even a bug, really.
The Menu doesn’t honor change states, and it’s not really meant to (you get the same thing if you flip a post from published). I can verify the flush trash clears it out, though.
Sounds good. It was simply a behavior that was different than I expected, but I can see those points of view. Thanks for hearing me out!
Thanks for your helpful advice Helen. Can you think of any good reason to retain the native behavior with menus?