Make WordPress Core

Opened 21 months ago

Last modified 21 months ago

#21470 new defect (bug)

Wrong menu when no menu is set

Reported by: porton Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.4.1
Component: Menus Keywords:
Focuses: Cc:


In the case if the admin hasn't created any menu in the dashboard (and so the default menu is shown), some parameters of wp_nav_menu() don't work. I verified that 'container'=>false does not work. Other parameters may no work as well.

Change History (1)

comment:1 ocean9021 months ago

The default fallback if no menu was found is wp_page_menu. And wp_page_menu doesn't support a container arg.

Related: #13998

Note: See TracTickets for help on using tickets.