Skip to:
Content

BuddyPress.org

Changeset 6921


Ignore:
Timestamp:
04/18/2013 12:50:03 AM (9 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
  • trunk/bp-core/bp-core-template.php

    r6893 r6921  
    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.