Ticket #4148: switch_theme-bp_active-order-change-4148.patch
| File switch_theme-bp_active-order-change-4148.patch, 757 bytes (added by , 14 years ago) |
|---|
-
bp-default/functions.php
30 30 // Exit if accessed directly 31 31 if ( ! defined( 'ABSPATH' ) ) exit; 32 32 33 if ( ! function_exists( 'bp_is_active' ) )34 return;35 33 36 // If BuddyPress is not activated, switch back to the default WP theme 34 35 // If BuddyPress is not activated, switch back to the default WP theme first 37 36 if ( ! defined( 'BP_VERSION' ) ) 38 37 switch_theme( WP_DEFAULT_THEME, WP_DEFAULT_THEME ); 39 38 39 // And then escape from further action 40 if ( ! function_exists( 'bp_is_active' ) ) 41 return; 42 40 43 /** 41 44 * Set the content width based on the theme's design and stylesheet. 42 45 *