Changeset 21131 for trunk/wp-admin/includes/class-wp-upgrader.php
- Timestamp:
- 06/26/2012 05:21:04 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-upgrader.php
r21080 r21131 954 954 return $return; 955 955 956 // Ensure stylesheet name hasnt changed after the upgrade: 957 // @TODO: Note, This doesn't handle the Template changing, or the Template name changing. 956 // Ensure stylesheet name hasn't changed after the upgrade: 958 957 if ( $theme == get_stylesheet() && $theme != $this->result['destination_name'] ) { 959 $theme_info = $this->theme_info();958 wp_clean_themes_cache(); 960 959 $stylesheet = $this->result['destination_name']; 961 $template = $theme_info->get_template(); 962 switch_theme($template, $stylesheet, true); 960 switch_theme( $stylesheet ); 963 961 } 964 962
Note: See TracChangeset
for help on using the changeset viewer.