Skip to:
Content

BuddyPress.org

Changeset 6018


Ignore:
Timestamp:
05/07/2012 04:59:14 PM (14 years ago)
Author:
djpaul
Message:

Update BP-Default (child themes) to better handle the absence of BuddyPress. Fixes #4148, props hnla

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/functions.php

    r5978 r6018  
    3131if ( ! defined( 'ABSPATH' ) ) exit;
    3232
    33 if ( ! function_exists( 'bp_is_active' ) )
     33// If BuddyPress is not activated, switch back to the default WP theme and bail out
     34if ( ! function_exists( 'bp_is_active' ) ) {
     35    switch_theme( WP_DEFAULT_THEME, WP_DEFAULT_THEME );
    3436    return;
    35 
    36 // If BuddyPress is not activated, switch back to the default WP theme
    37 if ( ! defined( 'BP_VERSION' ) )
    38     switch_theme( WP_DEFAULT_THEME, WP_DEFAULT_THEME );
     37}
    3938
    4039/**
Note: See TracChangeset for help on using the changeset viewer.