Skip to:
Content

BuddyPress.org

Ticket #5848: 5848.patch

File 5848.patch, 491 bytes (added by hnla, 10 years ago)

Add group slug to body classes

  • src/bp-core/bp-core-template.php

     
    23492349
    23502350                /** Groups ************************************************************/
    23512351
     2352                if ( bp_is_group() ) {
     2353                        $bp_classes[] = 'group-' . groups_get_current_group()->slug;
     2354                }
     2355
    23522356                if ( bp_is_group_leave() ) {
    23532357                        $bp_classes[] = 'leave-group';
    23542358                }