Skip to:
Content

Changeset 11605


Ignore:
Timestamp:
06/22/17 20:08:50 (6 months 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.