Skip to:
Content

bbPress.org

Changeset 5283


Ignore:
Timestamp:
02/11/2014 02:20:47 AM (8 years ago)
Author:
johnjamesjacoby
Message:

In bbp_locate_template() check for WP_USE_THEMES before calling load_template() to avoid warnings when running phpunit tests. See #2542.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/template-functions.php

    r5261 r5283  
    102102
    103103    // Maybe load the template if one was located
    104     if ( ( true === $load ) && !empty( $located ) ) {
     104    if ( ( defined( 'WP_USE_THEMES' ) && WP_USE_THEMES ) && ( true === $load ) && !empty( $located ) ) {
    105105        load_template( $located, $require_once );
    106106    }
Note: See TracChangeset for help on using the changeset viewer.