Skip to:
Content

BuddyPress.org

Ticket #7140: 7140.01.patch

File 7140.01.patch, 453 bytes (added by r-a-y, 7 years ago)
  • src/bp-loader.php

     
    618618                        return;
    619619                }
    620620
     621                // Sanity check 2 - Check if component is active before loading class.
     622                // Skip if PHPUnit is running.
     623                if ( 'core' !== $component && false === bp_is_active( $component ) && false === function_exists( 'tests_add_filter' ) ) {
     624                        return;
     625                }
     626
    621627                require $path;
    622628        }
    623629