[buddypress-trac] [BuddyPress] #4375: custom-background body class stripped out of body classes

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue Jul 24 12:58:22 UTC 2012

#4375: custom-background body class stripped out of body classes
 Reporter:  wpmuguru      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  1.6
Component:  Core          |     Version:  1.6-rc
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |

Comment (by wpmuguru):

 Replying to [comment:4 DJPaul]:
 > I don't quite understand where you think BP removes the class, or what
 type of template it affects. Are we talking e.g. blog posts, or BuddyPress
 content pages?

 The BuddyPress content pages.

 > Only thing I can see is the IF near the "preserve any custom classes
 already set" comment in bp_get_the_body_class() -- is this where the bug

 custom-background is not passed through the $custom-classes. It's passed
 through $wp_classes which is ignored on the BP content pages by

                 if ( !bp_is_blog_page() ) {

                         // Preserve any custom classes already set
                         if ( !empty( $custom_classes ) ) {
                                 $wp_classes = (array) $custom_classes;
                         } else {
                                 $wp_classes = array();

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4375#comment:5>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list