Opened 9 years ago
Closed 9 years ago
#34628 closed defect (bug) (fixed)
Submenu items bump to top level upon save if parent nav menu item is newly inserted
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 4.3 |
Component: | Customize | Keywords: | has-patch commit |
Focuses: | javascript | Cc: |
Description
Steps to reproduce:
- Open a menu in the Customizer.
- Add new new nav menu items.
- Drag one nav menu item to be a child of another.
- Do Save & Publish
Fail: notice that the sub-menu item gets bumped to the root level when the nav menu items are saved. This is only the case in the preview. If you reload the Customizer or visit the frontend after saving, the submenu item is in the expected nested location.
Attachments (1)
Change History (4)
#2
@
9 years ago
- Keywords commit added
When we get the inserted IDs for the new nav menu items back from the server upon save, we need to update each sub-nav menu item's menu_item_parent
if it was a placeholder. See 34628.0.diff.
Note: See
TracTickets for help on using
tickets.
https://github.com/xwp/wordpress-develop/pull/126/files