[wp-trac] [WordPress Trac] #12397: get_body_class should show more IDs

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 26 23:33:58 UTC 2010


#12397: get_body_class should show more IDs
--------------------------+-------------------------------------------------
 Reporter:  filosofo      |       Owner:           
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  3.0      
Component:  Themes        |     Version:  3.0      
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------

Comment(by filosofo):

 Replying to [comment:1 nacin]:
 > See also #11331 and #8446.

 Was something in particular there about IDs?  They seem to concern slugs.

 > There's also the general concern that slugs are stable while IDs are
 not, especially when terms are shared in multisite setups.

 I understand that, but it seems to me that the stability sufficient enough
 to allow `category-[ID].php`-style templates is also sufficient to allow
 such body class names.  They should rise and fall together.

 And to tip the scales further, it's consistent with the behavior of other
 request types, such as posts and pages.

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


More information about the wp-trac mailing list