Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/18/2011 10:46:09 PM (14 years ago)
Author:
boonebgorges
Message:

Modifies upgrade routine so that a site's front-end can continue to be accessible after a BP upgrade but before the wizard has been completed. Adds upgrade nags to the Dashboard. Fixes #2789. Props r-a-y and DJPaul for earlier patches and help testing

File:
1 edited

Legend:

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

    r3724 r3736  
    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  */
    43 if ( !constant( 'BP_VERSION' ) || !get_site_option( 'bp-db-version' ) ) {
    44     switch_theme( 'twentyten', 'twentyten' );
    45     wp_redirect( $_SERVER['HTTP_REFERER'] );
    46     exit;
    47 }
    4838
    4939if ( !function_exists( 'bp_dtheme_setup' ) ) :
Note: See TracChangeset for help on using the changeset viewer.