[wp-trac] [WordPress Trac] #11609: body_class and post_class bug with duplicate .page class possibility

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 25 20:58:20 UTC 2009


#11609: body_class and post_class bug with duplicate .page class possibility
-------------------------+--------------------------------------------------
 Reporter:  Frumph       |        Owner:         
     Type:  enhancement  |       Status:  closed 
 Priority:  normal       |    Milestone:         
Component:  Themes       |      Version:         
 Severity:  normal       |   Resolution:  wontfix
 Keywords:               |  
-------------------------+--------------------------------------------------

Comment(by Frumph):

 Obviously you don't work with your own code.

 If you have .page {}  and it's referencing the post_class() then it will
 also reference the body_class which will make whatever you put in .page {}
 be over the entire site since it's a body class.

 Then you will have to de-reference it in body.page {} what kind of
 backward mentality is that?

 It's just bad code completely to keep it this way.

 Not to mention with the new post types your going to have the double class
 there as well.

 If you specify that its a POSTofthetype-<type>

 Forget it, i'll just write a filter so it's done right like I do every
 other backward thing wordpress is doing.

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


More information about the wp-trac mailing list