Skip to:
Content

BuddyPress.org

Changeset 3704


Ignore:
Timestamp:
01/14/2011 07:13:19 AM (9 years ago)
Author:
johnjamesjacoby
Message:

Force twentyten theme if bp-default is active and BuddyPress is either not installed or not active.

File:
1 edited

Legend:

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

    r3689 r3704  
    3636if ( ! isset( $content_width ) )
    3737    $content_width = 591;
     38
     39/**
     40 * Temporary work-around to prevent errors with bp-default being active
     41 * when BuddyPress is not installed.
     42 */
     43if ( !constant( 'BP_VERSION' ) || !get_site_option( 'bp-db-version' ) ) {
     44    switch_theme( 'twentyten', 'twentyten' );
     45    wp_redirect( $_SERVER['HTTP_REFERER'] );
     46    exit;
     47}
    3848
    3949if ( !function_exists( 'bp_dtheme_setup' ) ) :
Note: See TracChangeset for help on using the changeset viewer.