Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/22/2016 08:46:36 PM (8 years ago)
Author:
r-a-y
Message:

Load all notification-related code conditionally for each component.

If the notifications component isn't active, there is no need to load all
notification code.

See #6712.

File:
1 edited

Legend:

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

    r10678 r11022  
    6464            'template',
    6565            'functions',
    66             'notifications',
    6766            'widgets',
    6867        );
     
    7372
    7473        // Conditional includes.
     74        if ( bp_is_active( 'notifications' ) ) {
     75            $includes[] = 'notifications';
     76        }
    7577        if ( bp_is_active( $this->id, 'star' ) ) {
    7678            $includes[] = 'star';
Note: See TracChangeset for help on using the changeset viewer.