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-friends/classes/class-bp-friends-component.php

    r10676 r11022  
    5454            'template',
    5555            'functions',
    56             'notifications',
    5756            'widgets',
    5857        );
     58
     59        // Conditional includes.
     60        if ( bp_is_active( 'notifications' ) ) {
     61            $includes[] = 'notifications';
     62        }
    5963
    6064        if ( ! buddypress()->do_autoload ) {
Note: See TracChangeset for help on using the changeset viewer.