Skip to:
Content

BuddyPress.org

Ticket #4148: switch_theme-bp_active-order-change-4148.patch

File switch_theme-bp_active-order-change-4148.patch, 757 bytes (added by hnla, 14 years ago)

patch reverses order of switch_theme and bp active check

  • bp-default/functions.php

     
    3030// Exit if accessed directly
    3131if ( ! defined( 'ABSPATH' ) ) exit;
    3232
    33 if ( ! function_exists( 'bp_is_active' ) )
    34         return;
    3533
    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
    3736if ( ! defined( 'BP_VERSION' ) )
    3837        switch_theme( WP_DEFAULT_THEME, WP_DEFAULT_THEME );
    3938
     39// And then escape from further action
     40if ( ! function_exists( 'bp_is_active' ) )
     41        return;
     42       
    4043/**
    4144 * Set the content width based on the theme's design and stylesheet.
    4245 *