Opened 11 months ago
Last modified 11 months ago
#21470 new defect (bug)
Wrong menu when no menu is set
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Menus | Version: | 3.4.1 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
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.
Note: See
TracTickets for help on using
tickets.
The default fallback if no menu was found is wp_page_menu. And wp_page_menu doesn't support a container arg.
Related: #13998