Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/02/2018 04:46:29 PM (20 months ago)
Author:
r-a-y
Message:

Friends: Conditionally load bp-friends-activity.php

Benefits those that have not enabled the Activity component.

See #7218.

File:
1 edited

Legend:

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

    r11931 r11932  
    4949            'cache',
    5050            'filters',
    51             'activity',
    5251            'template',
    5352            'functions',
     
    5655
    5756        // Conditional includes.
     57        if ( bp_is_active( 'activity' ) ) {
     58            $includes[] = 'activity';
     59        }
    5860        if ( bp_is_active( 'notifications' ) ) {
    5961            $includes[] = 'notifications';
Note: See TracChangeset for help on using the changeset viewer.