[wp-trac] [WordPress Trac] #19511: Adding an "hide_empty" parameter on wp_nav_menu() function

WordPress Trac wp-trac at lists.automattic.com
Mon Dec 12 09:42:42 UTC 2011


#19511: Adding an "hide_empty" parameter on wp_nav_menu() function
-------------------------+-----------------------------
 Reporter:  prionkor     |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 There should be a hide empty parameter on wp_nav_menu() function argument
 as there is no point to echo a empty menu item.

   1. The node with submenu should be skipped.
   2. May be false by default.
   3. There will be a check box on side of the menu (check attached image)

 [[Image(http://i.imgur.com/vATKW.jpg)]]

   4. The "hide_empty" parameter will be overwrite by that checkbox. That
 means the user choice will have more priority then theme developers
 choice.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19511>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list