Changeset 18630 for trunk/wp-includes/theme.php
- Timestamp:
- 09/02/2011 10:13:55 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r18325 r18630 1249 1249 global $wp_theme_directories; 1250 1250 1251 $old_theme = get_current_theme(); 1252 1251 1253 update_option('template', $template); 1252 1254 update_option('stylesheet', $stylesheet); 1255 1253 1256 if ( count($wp_theme_directories) > 1 ) { 1254 1257 update_option('template_root', get_raw_theme_root($template, true)); 1255 1258 update_option('stylesheet_root', get_raw_theme_root($stylesheet, true)); 1256 1259 } 1260 1257 1261 delete_option('current_theme'); 1258 1262 $theme = get_current_theme(); 1263 1259 1264 if ( is_admin() && false === get_option( "theme_mods_$stylesheet" ) ) { 1260 1265 $default_theme_mods = (array) get_option( "mods_$theme" ); 1261 1266 add_option( "theme_mods_$stylesheet", $default_theme_mods ); 1262 1267 } 1263 do_action('switch_theme', $theme); 1268 1269 update_option( 'theme_switched', $old_theme ); 1270 do_action( 'switch_theme', $theme ); 1264 1271 } 1265 1272
Note: See TracChangeset
for help on using the changeset viewer.