Changeset 6436 for trunk/bp-core/bp-core-update.php
- Timestamp:
- 10/22/2012 05:24:36 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-update.php
r6301 r6436 181 181 delete_site_transient( 'theme_roots' ); 182 182 183 // Switch to WordPress's default theme if current parent or child theme 184 // depend on bp-default. This is to prevent white screens of doom. 185 if ( in_array( 'bp-default', array( get_template(), get_stylesheet() ) ) ) { 186 switch_theme( WP_DEFAULT_THEME, WP_DEFAULT_THEME ); 187 update_option( 'template_root', get_raw_theme_root( WP_DEFAULT_THEME, true ) ); 188 update_option( 'stylesheet_root', get_raw_theme_root( WP_DEFAULT_THEME, true ) ); 189 } 190 183 191 // Use as of (1.6) 184 192 do_action( 'bp_deactivation' );
Note: See TracChangeset
for help on using the changeset viewer.