Make WordPress Core

Opened 10 years ago

Closed 4 years ago

Last modified 4 years ago

#21470 closed defect (bug) (wontfix)

Wrong menu when no menu is set

Reported by: porton's profile 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
10 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
7 years ago

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

#5 @audrasjb
4 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.