| @@ 68-77 (lines=10) @@ | ||
| 65 | * |
|
| 66 | * @return void |
|
| 67 | */ |
|
| 68 | private function __construct() { |
|
| 69 | add_action( 'jetpack_sync_processed_actions', array( $this, 'maybe_clear_migrate_option' ) ); |
|
| 70 | $urls_in_crisis = Jetpack::check_identity_crisis(); |
|
| 71 | if ( false === $urls_in_crisis ) { |
|
| 72 | return; |
|
| 73 | } |
|
| 74 | ||
| 75 | self::$wpcom_home_url = $urls_in_crisis['wpcom_home']; |
|
| 76 | add_action( 'init', array( $this, 'wordpress_init' ) ); |
|
| 77 | } |
|
| 78 | ||
| 79 | /** |
|
| 80 | * Gets the link to the support document used to explain Safe Mode to users. |
|
| @@ 48-56 (lines=9) @@ | ||
| 45 | return self::$instance; |
|
| 46 | } |
|
| 47 | ||
| 48 | private function __construct() { |
|
| 49 | add_action( 'jetpack_sync_processed_actions', array( $this, 'maybe_clear_migrate_option' ) ); |
|
| 50 | if ( false === $urls_in_crisis = Jetpack::check_identity_crisis() ) { |
|
| 51 | return; |
|
| 52 | } |
|
| 53 | ||
| 54 | self::$wpcom_home_url = $urls_in_crisis['wpcom_home']; |
|
| 55 | add_action( 'init', array( $this, 'wordpress_init' ) ); |
|
| 56 | } |
|
| 57 | ||
| 58 | /** |
|
| 59 | * Gets the link to the support document used to explain Safe Mode to users |
|