Skip to:
Content

BuddyPress.org

Changeset 12075


Ignore:
Timestamp:
05/10/2018 01:31:24 PM (6 years ago)
Author:
imath
Message:

BP Nouveau - Customizer: improve Group activity stream preview.

Single Group Activity stream was missing a class when the Group front page Customizer setting was disabled. In this particular case, the Group home page is the Group Activity stream page. The class was not added because the current action is not "activity" but "home". Using the bp_is_group_activity() conditional tag solves the issue.

Props dunhakdis

Fixes #7813

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/functions.php

    r12045 r12075  
    236236    $current_component_class = bp_current_component() . '-meta';
    237237
    238     if ( 'groups' === bp_current_component() && 'activity' === bp_current_action() ) {
     238    if ( bp_is_group_activity() ) {
    239239        $generic_class = ' activity-meta ';
    240240    } else {
Note: See TracChangeset for help on using the changeset viewer.