[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
Sun Sep 16 17:07:58 UTC 2012


#21576: wp_nav_menu: Don't return markup, when no menu item is set
-------------------------+---------------------
 Reporter:  obenland     |       Owner:  nacin
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  3.5
Component:  Menus        |     Version:
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |
-------------------------+---------------------
Changes (by nacin):

 * owner:   => nacin
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [21868]:
 {{{
 #!CommitTicketReference repository="" revision="21868"
 If a nav menu has no menu items, print nothing (instead of empty container
 markup). props obenland. fixes #21576.
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21576#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list