Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#14614 closed enhancement (duplicate)

Can't remove container in wp_nav_menu

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


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)

comment:1 @scribu5 years ago

  • Severity changed from major to normal

comment:2 @nacin5 years ago

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