Opened 11 years ago
Closed 11 years ago
#25064 closed defect (bug) (fixed)
Nav Menu: Bug while assigning a new menu to an existing menu location
Reported by: | ocean90 | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.6.1 | Priority: | normal |
Severity: | normal | Version: | 3.6 |
Component: | Menus | Keywords: | has-patch commit fixed-major |
Focuses: | Cc: |
Description
Steps to reproduce:
- Theme with menu support
get_theme_mod( 'nav_menu_locations' )
needs to be empty or shouldn't include the menu location for the next steps- Go to Manage Locations and select Use new menu
- Create the new menu and save it
Expected: The menu is assigned to the location.
Current: It's not assigned.
get_theme_mod( 'nav_menu_locations' )
doesn't return all registered menu locations means the isset() check fails.
Attachments (2)
Change History (8)
Note: See
TracTickets for help on using
tickets.
25064.patch uses
get_registered_nav_menus()
for the isset() check.