Changeset 10746
- Timestamp:
- 05/12/2016 06:05:27 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-template-loader.php
r10594 r10746 124 124 do_action( 'bp_locate_template', $located, $template_name, $template_names, $template_locations, $load, $require_once ); 125 125 126 // Maybe load the template if one was located.127 $use_themes = defined( 'WP_USE_THEMES' ) && WP_USE_THEMES;128 $doing_ajax = defined( 'DOING_AJAX' ) && DOING_AJAX;129 130 126 /** 131 127 * Filter here to allow/disallow template loading. … … 135 131 * @param bool $value True to load the template, false otherwise. 136 132 */ 137 $load_template = (bool) apply_filters( 'bp_locate_template_and_load', $use_themes || $doing_ajax);138 139 if ( $load_template && ( true == $load )&& ! empty( $located ) ) {133 $load_template = (bool) apply_filters( 'bp_locate_template_and_load', true ); 134 135 if ( $load_template && $load && ! empty( $located ) ) { 140 136 load_template( $located, $require_once ); 141 137 }
Note: See TracChangeset
for help on using the changeset viewer.