diff --git a/src/bp-loader.php b/src/bp-loader.php
index 0e533ff..0db5e64 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 | 'core' !== $component && |
| | 626 | ! bp_is_active( $component ) && |
| | 627 | ! function_exists( 'tests_add_filter' ) && |
| | 628 | ! get_transient( '_bp_is_new_install' ) |
| | 629 | ) { |
| 623 | 630 | return; |
| 624 | 631 | } |
| 625 | 632 | |