[wp-trac] [WordPress Trac] #14614: Can't remove container in wp_nav_menu
WordPress Trac
wp-trac at lists.automattic.com
Sat Aug 14 22:07:53 UTC 2010
#14614: Can't remove container in wp_nav_menu
-------------------------+--------------------------------------------------
Reporter: netweblogic | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: 3.0.1
Severity: major | Keywords: menu
-------------------------+--------------------------------------------------
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";
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14614>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list