Skip to:
Content

BuddyPress.org

Changeset 7837


Ignore:
Timestamp:
02/11/2014 02:23:00 AM (11 years ago)
Author:
johnjamesjacoby
Message:

In bp_locate_template() check for WP_USE_THEMES before calling load_template() to avoid warnings when running phpunit tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-template-loader.php

    r7508 r7837  
    9696
    9797    // Maybe load the template if one was located
    98     if ( ( true == $load ) && !empty( $located ) )
     98    if ( ( defined( 'WP_USE_THEMES' ) && WP_USE_THEMES ) && ( true == $load ) && !empty( $located ) ) {
    9999        load_template( $located, $require_once );
     100    }
    100101
    101102    return $located;
Note: See TracChangeset for help on using the changeset viewer.