projects/packages/identity-crisis/src/class-identity-crisis.php 1 location
|
@@ 217-225 (lines=9) @@
|
| 214 |
|
* |
| 215 |
|
* @return array|bool Array of options that are in a crisis, or false if everything is OK. |
| 216 |
|
*/ |
| 217 |
|
public static function check_identity_crisis() { |
| 218 |
|
$connection = new Connection_Manager( 'jetpack' ); |
| 219 |
|
|
| 220 |
|
if ( ! $connection->is_active() || ( new Status() )->is_offline_mode() || ! self::validate_sync_error_idc_option() ) { |
| 221 |
|
return false; |
| 222 |
|
} |
| 223 |
|
|
| 224 |
|
return Jetpack_Options::get_option( 'sync_error_idc' ); |
| 225 |
|
} |
| 226 |
|
|
| 227 |
|
/** |
| 228 |
|
* Prepare URL for display. |
projects/plugins/jetpack/class.jetpack.php 1 location
|
@@ 6156-6162 (lines=7) @@
|
| 6153 |
|
* |
| 6154 |
|
* @return array|bool Array of options that are in a crisis, or false if everything is OK. |
| 6155 |
|
*/ |
| 6156 |
|
public static function check_identity_crisis() { |
| 6157 |
|
if ( ! self::is_active() || ( new Status() )->is_offline_mode() || ! self::validate_sync_error_idc_option() ) { |
| 6158 |
|
return false; |
| 6159 |
|
} |
| 6160 |
|
|
| 6161 |
|
return Jetpack_Options::get_option( 'sync_error_idc' ); |
| 6162 |
|
} |
| 6163 |
|
|
| 6164 |
|
/** |
| 6165 |
|
* Checks whether the home and siteurl specifically are allowed. |