Skip to:
Content

BuddyPress.org

Changeset 7842


Ignore:
Timestamp:
02/11/2014 04:11:07 AM (11 years ago)
Author:
boonebgorges
Message:

In bp_locate_template(), don't bail if DOING_AJAX

This is an amendment to r7837, which broke template loading during AJAX
operations (such as in the case of activity posting)

File:
1 edited

Legend:

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

    r7838 r7842  
    105105
    106106    // Maybe load the template if one was located
    107     if ( ( defined( 'WP_USE_THEMES' ) && WP_USE_THEMES ) && ( true == $load ) && !empty( $located ) ) {
     107    $use_themes = defined( 'WP_USE_THEMES' ) && WP_USE_THEMES;
     108    $doing_ajax = defined( 'DOING_AJAX' ) && DOING_AJAX;
     109    if ( ( $use_themes || $doing_ajax ) && ( true == $load ) && ! empty( $located ) ) {
    108110        load_template( $located, $require_once );
    109111    }
Note: See TracChangeset for help on using the changeset viewer.