[wp-trac] [WordPress Trac] #34628: Submenu items bump to top level upon save if parent nav menu item is newly inserted

WordPress Trac noreply at wordpress.org
Mon Nov 9 01:18:34 UTC 2015


#34628: Submenu items bump to top level upon save if parent nav menu item is newly
inserted
------------------------------+--------------------------
 Reporter:  westonruter       |       Owner:  westonruter
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  4.4
Component:  Customize         |     Version:  4.3
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  javascript
------------------------------+--------------------------
Changes (by westonruter):

 * owner:   => westonruter
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"35581"]:
 {{{
 #!CommitTicketReference repository="" revision="35581"
 Customize: Fix sub-nav menu items from appearing to bump to root level in
 preview upon saving.

 This issue would appear when the parent nav menu item was also newly-
 inserted. The issue was only apparent in the prevew, as the actual data
 saved was correct. The `menu_item_parent` properties of the saved sub-nav
 menu items needed to get updated to refer to the newly-inserted parent
 `nav_menu_item` post IDs, as opposed to retaining the placeholder IDs.

 Fixes #34628.
 }}}

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


More information about the wp-trac mailing list