Changeset 5876 for trunk/bp-themes/bp-default/functions.php
- Timestamp:
- 03/03/2012 05:09:25 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/bp-themes/bp-default/functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/functions.php
r5751 r5876 28 28 */ 29 29 30 if ( !function_exists( 'bp_is_active' ) ) 30 // Exit if accessed directly 31 if ( ! defined( 'ABSPATH' ) ) exit; 32 33 if ( ! function_exists( 'bp_is_active' ) ) 31 34 return; 32 35 33 36 // If BuddyPress is not activated, switch back to the default WP theme 34 if ( ! defined( 'BP_VERSION' ) )37 if ( ! defined( 'BP_VERSION' ) ) 35 38 switch_theme( WP_DEFAULT_THEME, WP_DEFAULT_THEME ); 36 39 … … 44 47 $content_width = 591; 45 48 46 if ( ! function_exists( 'bp_dtheme_setup' ) ) :49 if ( ! function_exists( 'bp_dtheme_setup' ) ) : 47 50 /** 48 51 * Sets up theme defaults and registers support for various WordPress and BuddyPress features.
Note: See TracChangeset
for help on using the changeset viewer.