Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/22/2016 08:46:36 PM (5 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-activity/classes/class-bp-activity-component.php

    r10851 r11022  
    5858            'template',
    5959            'functions',
    60             'notifications',
    6160            'cache'
    6261        );
     62
     63        // Notifications support.
     64        if ( bp_is_active( 'notifications' ) ) {
     65            $includes[] = 'notifications';
     66        }
    6367
    6468        if ( ! buddypress()->do_autoload ) {
Note: See TracChangeset for help on using the changeset viewer.