Skip to:
Content

BuddyPress.org

Changeset 6920


Ignore:
Timestamp:
04/18/2013 12:49:48 AM (12 years ago)
Author:
boonebgorges
Message:

Don't be greedy about adding the 'buddypress' class to pages

Fixes an issue where the 'buddypress' body class was being added to nearly
every page, even if it wasn't a BP page by the normal definition.

Fixes #4928

Props dcavins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.7/bp-core/bp-core-template.php

    r6893 r6920  
    17611761
    17621762        // Add BuddyPress class if we are within a BuddyPress page
    1763         if ( !empty( $bp_classes ) ) {
     1763        if ( ! bp_is_blog_page() ) {
    17641764            $bp_classes[] = 'buddypress';
    17651765        }
Note: See TracChangeset for help on using the changeset viewer.