Skip to content

Commit fe26f63

Browse files
bindlegirlmatticbot
authored andcommitted
IDC: revalidation respects safe mode (#46569)
Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/20965144335 Upstream-Ref: Automattic/jetpack@b8a5575
1 parent 7527baa commit fe26f63

File tree

6 files changed

+170
-164
lines changed

6 files changed

+170
-164
lines changed

jetpack_vendor/automattic/jetpack-connection/src/identity-crisis/class-identity-crisis.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,12 @@ public static function reverse_wpcom_urls_for_idc( $sync_error ) {
473473
* @return bool True if validation should be performed, false otherwise.
474474
*/
475475
public static function should_remote_validate_idc( $sync_error ) {
476+
// Respect the user's decision to stay in safe mode.
477+
// If safe mode is confirmed, don't attempt validation.
478+
if ( self::safe_mode_is_confirmed() ) {
479+
return false;
480+
}
481+
476482
// If a validation is already in progress or recently completed, don't trigger another.
477483
if ( get_transient( 'jetpack_idc_validation_lock' ) ) {
478484
return false;

jetpack_vendor/i18n-map.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
),
5151
'jetpack-connection' => array(
5252
'path' => 'jetpack_vendor/automattic/jetpack-connection',
53-
'ver' => '6.20.2-alpha1768246030',
53+
'ver' => '6.20.2-alpha1768323153',
5454
),
5555
'jetpack-explat' => array(
5656
'path' => 'jetpack_vendor/automattic/jetpack-explat',

0 commit comments

Comments
 (0)