Make WordPress Core

Opened 22 months ago

Last modified 22 months ago

#56089 new defect (bug)

Meta data of menu items not removed from wp_postmeta table after removing the menu item before being saved.

Reported by: alokstha1's profile alokstha1 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.0
Component: Menus Keywords: needs-testing-info needs-testing
Focuses: Cc:

Description

If we add a menu item, the menu item's metadata are added. Don't hit submit button yet.

Remove the menu item, the metadata still exist.

Add back the menu items, new metadata with a new post_id is added to wp_postmeta table. Hit the Save Menu button.
Now, remove the menu item and hit the Save Menu button, the metadata will be removed.

It doesn't remove the metadatas only when we add the menu item and remove the menu item without saving the menu.

_menu_item_type
_menu_item_menu_item_parent
_menu_item_object_id
_menu_item_object
_menu_item_target

Change History (2)

This ticket was mentioned in Slack in #core-test by ironprogrammer. View the logs.


22 months ago

#2 @ironprogrammer
22 months ago

  • Keywords needs-testing-info needs-testing added
Note: See TracTickets for help on using tickets.