| @@ 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 |
|
| @@ 73-82 (lines=10) @@ | ||
| 70 | * |
|
| 71 | * @return void |
|
| 72 | */ |
|
| 73 | private function __construct() { |
|
| 74 | add_action( 'jetpack_sync_processed_actions', array( $this, 'maybe_clear_migrate_option' ) ); |
|
| 75 | $urls_in_crisis = Jetpack::check_identity_crisis(); |
|
| 76 | if ( false === $urls_in_crisis ) { |
|
| 77 | return; |
|
| 78 | } |
|
| 79 | ||
| 80 | self::$wpcom_home_url = $urls_in_crisis['wpcom_home']; |
|
| 81 | add_action( 'init', array( $this, 'wordpress_init' ) ); |
|
| 82 | } |
|
| 83 | ||
| 84 | /** |
|
| 85 | * Gets the link to the support document used to explain Safe Mode to users. |
|