[wp-trac] [WordPress Trac] #13379: wp_nav_menu item classnames

WordPress Trac wp-trac at lists.automattic.com
Sun May 16 00:12:25 UTC 2010


#13379: wp_nav_menu item classnames
----------------------------+-----------------------------------------------
 Reporter:  silencematters  |       Owner:  nacin    
     Type:  enhancement     |      Status:  reviewing
 Priority:  normal          |   Milestone:  3.0      
Component:  Menus           |     Version:  3.0      
 Severity:  normal          |    Keywords:           
----------------------------+-----------------------------------------------

Comment(by wpmuguru):

 Replying to [comment:1 nacin]:
 > I think part of the issue is where you draw the line.
 >
 > I think doing it just for pages is a little narrow, if we're going to do
 it. Is doing it for all post types and taxonomies too much markup?
 >
 > I imagine there's already a filter to achieve this as well. Patches and
 thoughts welcome.

 I'd go with a filter, that way a custom post type or other plugin/theme
 can add classes through the filter. The only way the CSS will be there for
 the extra classes is through plugin/theme functions.

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


More information about the wp-trac mailing list