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

WordPress Trac noreply at wordpress.org
Thu Jan 12 23:23:16 UTC 2023


#57169: Prevent saving of invalid menu_item_parent
--------------------------+---------------------
 Reporter:  azaozz        |       Owner:  azaozz
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  6.1.2
Component:  Menus         |     Version:  6.1
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------
Changes (by azaozz):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55059" 55059]:
 {{{
 #!CommitTicketReference repository="" revision="55059"
 Menus: Compare `$menu_item->ID` and `$menu_item->menu_item_parent` as
 strings and avoid moidifying them. Plugins may change the ID to a string.

 Props Chouby, peterwilsoncc, Chrystl, manooweb, azaozz.
 Fixes #57169.
 }}}

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


More information about the wp-trac mailing list