[wp-trac] [WordPress Trac] #13976: wp_nav_menu() uses IDs for menu-items preventing re-use on the same page

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 18 15:13:48 UTC 2010


#13976: wp_nav_menu() uses IDs for menu-items preventing re-use on the same page
--------------------------+-------------------------------------------------
 Reporter:  foolsrun      |       Owner:                                   
     Type:  defect (bug)  |      Status:  new                              
 Priority:  normal        |   Milestone:  3.0.1                            
Component:  Menus         |     Version:  3.0                              
 Severity:  normal        |    Keywords:  menu id css wp_nav_menu has-patch
--------------------------+-------------------------------------------------

Comment(by foolsrun):

 What about allowing an arbitrary prefix to the IDs?
 Instead of

 {{{
 <li id="menu-item-123">
 }}}

 I could define in the wp_nav_menu() arguments that I want them to read

 {{{
 <li id="header-menu-item-123">
 }}}

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


More information about the wp-trac mailing list