Changeset 10594 for trunk/src/bp-core/bp-core-template-loader.php
- Timestamp:
- 02/15/2016 07:12:42 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-template-loader.php
r10497 r10594 127 127 $use_themes = defined( 'WP_USE_THEMES' ) && WP_USE_THEMES; 128 128 $doing_ajax = defined( 'DOING_AJAX' ) && DOING_AJAX; 129 if ( ( $use_themes || $doing_ajax ) && ( true == $load ) && ! empty( $located ) ) { 129 130 /** 131 * Filter here to allow/disallow template loading. 132 * 133 * @since 2.5.0 134 * 135 * @param bool $value True to load the template, false otherwise. 136 */ 137 $load_template = (bool) apply_filters( 'bp_locate_template_and_load', $use_themes || $doing_ajax ); 138 139 if ( $load_template && ( true == $load ) && ! empty( $located ) ) { 130 140 load_template( $located, $require_once ); 131 141 }
Note: See TracChangeset
for help on using the changeset viewer.