Ticket #7301: 7301-01.patch
File 7301-01.patch, 1012 bytes (added by , 8 years ago) |
---|
-
src/bp-core/bp-core-template.php
3298 3298 3299 3299 if ( bp_is_user() ) { 3300 3300 $bp_classes[] = 'bp-user'; 3301 3302 // Add current user member types. 3303 if ( $member_types = bp_get_member_type( bp_displayed_user_id(), false ) ) { 3304 foreach( $member_types as $member_type ) { 3305 $bp_classes[] = sprintf( 'member-type-%s', esc_attr( $member_type ) ); 3306 } 3307 } 3301 3308 } 3302 3309 3303 3310 if ( ! bp_is_directory() ) { … … 3388 3395 3389 3396 if ( bp_is_group() ) { 3390 3397 $bp_classes[] = 'group-' . groups_get_current_group()->slug; 3398 3399 // Add current group types. 3400 if ( $group_types = bp_groups_get_group_type( bp_get_current_group_id(), false ) ) { 3401 foreach ( $group_types as $group_type ) { 3402 $bp_classes[] = sprintf( 'group-type-%s', esc_attr( $group_type ) ); 3403 } 3404 } 3391 3405 } 3392 3406 3393 3407 if ( bp_is_group_leave() ) {