diff --git a/wp-includes/class-wp-customize-manager.php b/wp-includes/class-wp-customize-manager.php
index cad9f13..b581c96 100644
a
|
b
|
final class WP_Customize_Manager { |
179 | 179 | // Handle custom theme roots. |
180 | 180 | add_filter( 'pre_option_stylesheet_root', array( $this, 'get_stylesheet_root' ) ); |
181 | 181 | add_filter( 'pre_option_template_root', array( $this, 'get_template_root' ) ); |
| 182 | update_option( 'theme_switched', $this->theme->stylesheet ); |
182 | 183 | } |
183 | 184 | |
184 | 185 | do_action( 'start_previewing_theme', $this ); |
… |
… |
final class WP_Customize_Manager { |
209 | 210 | // Handle custom theme roots. |
210 | 211 | remove_filter( 'pre_option_stylesheet_root', array( $this, 'get_stylesheet_root' ) ); |
211 | 212 | remove_filter( 'pre_option_template_root', array( $this, 'get_template_root' ) ); |
| 213 | update_option( 'theme_switched', false ); |
212 | 214 | } |
213 | 215 | |
214 | 216 | do_action( 'stop_previewing_theme', $this ); |