[wp-trac] [WordPress Trac] #21576: wp_nav_menu: Don't return markup, when no menu item is set
WordPress Trac
wp-trac at lists.automattic.com
Tue Aug 14 15:06:16 UTC 2012
#21576: wp_nav_menu: Don't return markup, when no menu item is set
-------------------------+-----------------------------
Reporter: obenland | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version:
Severity: normal | Keywords: has-patch
-------------------------+-----------------------------
Having assigned an empty menu to a location can be assumed to be the
user's way of "disabling" the menu.
When there are no items, there shouldn't be a menu, hence there shouldn't
be any extra menu markup.
Rendering markup nonetheless could lead to issues when menu wrappers are
styled (as they are in Twenty Twelve) and left empty.
Currently out put is:
{{{
#!php
<div class="menu-menu-container"><ul id="menu-menu"
class="menu"></ul></div>
}}}
Related: #21562
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21576>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list