Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#14614 closed enhancement (duplicate)

Can't remove container in wp_nav_menu

Reported by: netweblogic's profile netweblogic Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0.1
Component: Menus Keywords: menu
Focuses: Cc:

Description

I notice that whether I provide false, null, empty string, etc. the container doesn't get removed if the default fallback method is used

I think it would make sense to add the 'container' option to wp_page_menu so it gets passed on from wp_nav_menu and doesn't break theme HTML:

wp-includes/post-template.php - line 864

$menu = '<div class="' . esc_attr($args['menu_class']) . '">' . $menu . "</div>\n";

Change History (2)

#1 @scribu
14 years ago

  • Severity changed from major to normal

#2 @nacin
14 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.