[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
Sun Jul 11 02:36:55 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:  has-patch commit
--------------------------+-------------------------------------------------
Changes (by nacin):

  * keywords:  has-patch => has-patch commit


Comment:

 Attached patch (13976.2.diff) uses filosofo's filter, and latches on a
 callback to then ensure we're only using the id menu-item-* once.

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


More information about the wp-trac mailing list