Changeset 7508 for trunk/bp-core/bp-core-template-loader.php
- Timestamp:
- 11/02/2013 10:36:10 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-template-loader.php
r7452 r7508 398 398 */ 399 399 function bp_load_theme_functions() { 400 global $pagenow ;400 global $pagenow, $wp_query; 401 401 402 402 // do not load our custom BP functions file if theme compat is disabled … … 408 408 if ( bp_is_deactivation() ) 409 409 return; 410 411 // If the $wp_query global is empty (the main query has not been run, 412 // or has been reset), load_template() will fail at setting certain 413 // global values. This does not happen on a normal page load, but can 414 // cause problems when running automated tests 415 if ( ! is_a( $wp_query, 'WP_Query' ) ) { 416 return; 417 } 410 418 411 419 // Only include if not installing or if activating via wp-activate.php
Note: See TracChangeset
for help on using the changeset viewer.