diff --git a/php/class-customize-snapshot-manager.php b/php/class-customize-snapshot-manager.php index 127e170b..88ba631d 100644 --- a/php/class-customize-snapshot-manager.php +++ b/php/class-customize-snapshot-manager.php @@ -198,6 +198,11 @@ public function is_theme_active() { */ public function should_import_and_preview_snapshot( Customize_Snapshot $snapshot ) { + // Ignore if in the admin. + if ( is_admin() && ! ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) { + return false; + } + if ( is_wp_error( $this->get_theme_switch_error( $snapshot ) ) ) { return false; }