[wp-trac] [WordPress Trac] #11817: Better Site Menu Management

WordPress Trac wp-trac at lists.automattic.com
Wed Feb 24 08:54:07 UTC 2010


#11817: Better Site Menu Management
----------------------------+-----------------------------------------------
 Reporter:  scribu          |       Owner:           
     Type:  task (blessed)  |      Status:  assigned 
 Priority:  normal          |   Milestone:  3.0      
Component:  General         |     Version:           
 Severity:  normal          |    Keywords:  has-patch
----------------------------+-----------------------------------------------

Comment(by ryan):

 wp_nav_menu() is the template function themes use to output a nav menu.  A
 menu id or slug can be passed to identify the menu to output. If neither
 ID or slug is passed, the first non-empty menu is used. If there are no
 non-empty menus then wp_page_menu() is called.  A means of specifying a
 "main" menu is needed so that themes calling wp_nav_menu() without a
 requesting a specific menu (the most common case) won't have the menu
 that's picked change as menus are added and deleted.

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


More information about the wp-trac mailing list