Skip to:
Content

BuddyPress.org

Changeset 2598


Ignore:
Timestamp:
02/04/2010 04:48:18 PM (16 years ago)
Author:
apeatling
Message:

Switch users of the old bp-default theme to the new bp-default theme on activation. If they want to continue using bp-classic they can manually activate this from the backwards compatibility plugin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-loader.php

    r2597 r2598  
    6161        delete_site_transient( 'theme_roots' );
    6262
     63        /* Switch the user to the new bp-default if they are using the old bp-default on activation. */
     64        if ( 'bp-sn-parent' == get_blog_option( BP_ROOT_BLOG, 'template' ) && 'bp-default' == get_blog_option( BP_ROOT_BLOG, 'stylesheet' ) )
     65                switch_theme( 'bp-default', 'bp-default' );
     66
    6367        do_action( 'bp_loader_activate' );
    6468}
Note: See TracChangeset for help on using the changeset viewer.