Skip to:
Content

BuddyPress.org

Ticket #7153: 7153-alt.01.patch

File 7153-alt.01.patch, 764 bytes (added by DJPaul, 8 years ago)

alt

  • src/bp-loader.php

    diff --git a/src/bp-loader.php b/src/bp-loader.php
    index 0e533ff..0a0eb6e 100644
    a b class BuddyPress { 
    617617                        return;
    618618                }
    619619
    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                ) {
    623629                        return;
    624630                }
    625631