summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/sync/class.jetpack-sync-settings.php')
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-settings.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/jetpack/sync/class.jetpack-sync-settings.php b/plugins/jetpack/sync/class.jetpack-sync-settings.php
index ab9f228b..6713cc9d 100644
--- a/plugins/jetpack/sync/class.jetpack-sync-settings.php
+++ b/plugins/jetpack/sync/class.jetpack-sync-settings.php
@@ -162,7 +162,7 @@ class Jetpack_Sync_Settings {
}
static function is_syncing() {
- return (bool) self::$is_syncing;
+ return (bool) self::$is_syncing || ( defined( 'REST_API_REQUEST' ) && REST_API_REQUEST );
}
static function set_is_syncing( $is_syncing ) {