[wp-trac] [WordPress Trac] #53877: Menus: Selected display locations for new menus aren't saved

WordPress Trac noreply at wordpress.org
Thu Aug 5 03:42:46 UTC 2021


#53877: Menus: Selected display locations for new menus aren't saved
--------------------------+-----------------------------
 Reporter:  dlh           |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Menus         |    Version:  5.7
 Severity:  normal        |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------------
 [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.

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


More information about the wp-trac mailing list