WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] WP 3.3 RC2 - Moving Page to trash doesn't automatically remove from menu (7 posts)

  1. xantius
    Member
    Posted 2 years ago #

    When deleting a page that is referenced by the menu, and in this particular case which was automatically added to the menu from the "Automatically add new top-level pages" setting, it isn't automatically removed from the menu. The menu continues to reference the removed page and gives a WP error in response.

  2. Helen Hou-Sandi
    WordPress Dev
    Posted 2 years ago #

    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.

  3. xantius
    Member
    Posted 2 years ago #

    Hmm. Should I read that then as it's not going to get fixed in this release? :-)

  4. Helen Hou-Sandi
    WordPress Dev
    Posted 2 years ago #

    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?

  5. 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.

  6. xantius
    Member
    Posted 2 years ago #

    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!

  7. steveanson
    Member
    Posted 1 year ago #

    Thanks for your helpful advice Helen. Can you think of any good reason to retain the native behavior with menus?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags