[wp-trac] [WordPress Trac] #57169: Prevent saving of invalid menu_item_parent

WordPress Trac noreply at wordpress.org
Mon Nov 21 23:08:30 UTC 2022


#57169: Prevent saving of invalid menu_item_parent
--------------------------+--------------------
 Reporter:  azaozz        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  6.1.2
Component:  Menus         |    Version:  6.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+--------------------
 Follow up to #56926.

 There seems to be a bug in the Customizer that may set
 `$menu_item->menu_item_parent` to be the same as `$menu_item->ID`. Steps
 to reproduce: https://core.trac.wordpress.org/ticket/56926#comment:21.

 Seems there should be some validation of the `menu_item_parent` before it
 is saved in the `_menu_item_menu_item_parent` meta.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57169>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list