Opened 5 years ago
Closed 5 years ago
#53877 closed defect (bug) (fixed)
Menus: Selected display locations for new menus aren't saved
| Reported by: | dlh | Owned by: | desrosj |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.8.1 |
| Component: | Menus | Version: | 5.8 |
| Severity: | normal | Keywords: | has-patch commit fixed-major |
| Cc: | Focuses: |
Description
[48051] provided the ability to adjust menu settings when creating a menu on nav-menus.php. [50938] later corrected some issues with the "Display location" setting specifically. Now, however, when creating a menu, the selected menu locations aren't saved at all.
This behavior should be replicable on a fresh installation using Twenty Twenty-One by visiting Appearance > Menus, giving your first menu a name, selecting a location or two, and saving. The menu will save, but the locations won't.
The linked PR attempts to address the issue by assigning only the locations in $_POST['menu-locations'] to the new menu.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Trac ticket: https://core.trac.wordpress.org/ticket/53877