Skip to:
Content

BuddyPress.org

Changeset 11605


Ignore:
Timestamp:
06/22/2017 08:08:50 PM (7 years ago)
Author:
hnla
Message:

Add theme compat id to body classes

With the advent of selectable template packs it might help to identify theme in the body classes.

Commit adds the bp_get_theme_compat_id() appended to string 'bp-', using name can result in white space string.

Fixes #7537

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-template.php

    r11518 r11605  
    34703470            $bp_classes[] = 'buddypress';
    34713471        }
     3472
     3473        // Add the theme name/id to the body classes
     3474        $bp_classes[] = 'bp-' . bp_get_theme_compat_id();
    34723475
    34733476        // Merge WP classes with BuddyPress classes and remove any duplicates.
Note: See TracChangeset for help on using the changeset viewer.