Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/01/2018 11:37:47 PM (21 months ago)
Author:
r-a-y
Message:

Groups: Conditionally load bp-groups-activity.php

Benefits those that have not enabled the Activity component.

See #7218.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/classes/class-bp-groups-component.php

    r11923 r11924  
    126126            'filters',
    127127            'widgets',
    128             'activity',
    129128            'template',
    130129            'adminbar',
     
    133132        );
    134133
     134        // Conditional includes.
     135        if ( bp_is_active( 'activity' ) ) {
     136            $includes[] = 'activity';
     137        }
    135138        if ( is_admin() ) {
    136139            $includes[] = 'admin';
Note: See TracChangeset for help on using the changeset viewer.