[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
Mon Jul 5 17:46:26 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 shidouhikari):

 I see... but I still think it's easier and simpler to convert ids to
 classes other than parsing or using regex to fix. Wordpress have beeing
 losing quality in its standards and passing features for plugins to
 handle, which should be kept as standard defined by core.

 We shouldn't receive poorly standardized stuff from core and spend
 precious CPU time to fix them, making results different from the standard.

 Also, *in Wordpress* menus were always neglected and less used. Joomla
 themes for exemple use to have the same menu on top, left, right, etc.

 There's no real need to use id when we have class, so why insist to use
 it? Why force users to be limited to use each menu only once per page, or
 force them to use tricky techniques to make it possible, if those thechies
 shouldn't be needed at all? It becomes more complex than needed, and
 throws the responsibility that should be from core to plugins, making it
 worse and worse.

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


More information about the wp-trac mailing list