WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 2 years ago

Last modified 23 months ago

#21470 closed defect (bug) (wontfix)

Wrong menu when no menu is set

Reported by: porton Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.4
Component: Menus Keywords: needs-testing bulk-reopened
Focuses: 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.

Change History (3)

#1 @ocean90
9 years 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

#2 @chriscct7
6 years ago

  • Keywords needs-testing added
  • Version changed from 3.4.1 to 3.4

#5 @audrasjb
2 years ago

  • Keywords bulk-reopened added
  • Resolution set to wontfix
  • Status changed from new to closed

Hi,

As per @ocean90 's comment:
"The default fallback if no menu was found is wp_page_menu. And wp_page_menu doesn't support a container arg."

Note: See TracTickets for help on using tickets.