diff options
Diffstat (limited to 'plugins/jetpack/sync/class.jetpack-sync-module-themes.php')
-rw-r--r-- | plugins/jetpack/sync/class.jetpack-sync-module-themes.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/jetpack/sync/class.jetpack-sync-module-themes.php b/plugins/jetpack/sync/class.jetpack-sync-module-themes.php index be44c9a8..4617ce90 100644 --- a/plugins/jetpack/sync/class.jetpack-sync-module-themes.php +++ b/plugins/jetpack/sync/class.jetpack-sync-module-themes.php @@ -37,6 +37,11 @@ class Jetpack_Sync_Module_Themes extends Jetpack_Sync_Module { return $instance; } + // Don't trigger sync action if this is an ajax request, because Customizer makes them during preview before saving changes + if ( defined( 'DOING_AJAX' ) && DOING_AJAX && isset( $_POST['customized'] ) ) { + return $instance; + } + $widget = array( 'name' => $widget_object->name, 'id' => $widget_object->id, |