summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/sync/class.jetpack-sync-module-updates.php')
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-module-updates.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/jetpack/sync/class.jetpack-sync-module-updates.php b/plugins/jetpack/sync/class.jetpack-sync-module-updates.php
index d40be62d..270f6a8d 100644
--- a/plugins/jetpack/sync/class.jetpack-sync-module-updates.php
+++ b/plugins/jetpack/sync/class.jetpack-sync-module-updates.php
@@ -87,7 +87,10 @@ class Jetpack_Sync_Module_Updates extends Jetpack_Sync_Module {
}
// Core was autoudpated
- if ( 'update-core.php' !== $pagenow ) {
+ if (
+ 'update-core.php' !== $pagenow &&
+ ! Jetpack_Constants::is_true( 'REST_API_REQUEST' ) // wp.com rest api calls should never be marked as a core autoupdate
+ ) {
/**
* Sync event that fires when core autoupdate was successful
*