Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
Ignore customize_snapshot_uuid param if in the admin
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Aug 7, 2016
1 parent fe54c3c commit c1ce097
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions php/class-customize-snapshot-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c1ce097

Please sign in to comment.