diff --git a/src/bp-loader.php b/src/bp-loader.php
index 0e533ff..0a0eb6e 100644
a
|
b
|
class BuddyPress { |
617 | 617 | return; |
618 | 618 | } |
619 | 619 | |
620 | | // Sanity check 2 - Check if component is active before loading class. |
621 | | // Skip if PHPUnit is running. |
622 | | if ( 'core' !== $component && false === bp_is_active( $component ) && false === function_exists( 'tests_add_filter' ) ) { |
| 620 | /* |
| 621 | * Sanity check 2 - Check if component is active before loading class. |
| 622 | * Skip if PHPUnit is running, or BuddyPress is installing for the first time. |
| 623 | */ |
| 624 | if ( |
| 625 | ! in_array( $component, array( 'core', 'members' ) ) && |
| 626 | ! bp_is_active( $component ) && |
| 627 | ! function_exists( 'tests_add_filter' ) |
| 628 | ) { |
623 | 629 | return; |
624 | 630 | } |
625 | 631 | |