|
@@ 267-282 (lines=16) @@
|
| 264 |
|
</div> |
| 265 |
|
<?php } |
| 266 |
|
|
| 267 |
|
function get_first_step_header_lead() { |
| 268 |
|
$html = wp_kses( |
| 269 |
|
sprintf( |
| 270 |
|
__( |
| 271 |
|
'Jetpack has been placed into <a href="%1$s">Safe mode</a> because we noticed this is an exact copy of <a href="%2$s">%3$s</a>.', |
| 272 |
|
'jetpack' |
| 273 |
|
), |
| 274 |
|
esc_url( self::SAFE_MODE_DOC_LINK ), |
| 275 |
|
esc_url( self::$wpcom_home_url ), |
| 276 |
|
self::prepare_url_for_display( esc_url_raw( self::$wpcom_home_url ) ) |
| 277 |
|
), |
| 278 |
|
array( 'a' => array( 'href' => array() ) ) |
| 279 |
|
); |
| 280 |
|
|
| 281 |
|
/** |
| 282 |
|
* Allows overriding of the default header text in the first step of the Safe Mode notice. |
| 283 |
|
* |
| 284 |
|
* @since 4.4.0 |
| 285 |
|
* |
|
@@ 314-329 (lines=16) @@
|
| 311 |
|
return apply_filters( 'jetpack_idc_first_step_header_explanation', $html ); |
| 312 |
|
} |
| 313 |
|
|
| 314 |
|
function get_confirm_safe_mode_action_explanation() { |
| 315 |
|
$html = wp_kses( |
| 316 |
|
sprintf( |
| 317 |
|
__( |
| 318 |
|
'Is this website a temporary duplicate of <a href="%1$s">%2$s</a> for the purposes |
| 319 |
|
of testing, staging or development? If so, we recommend keeping it in Safe Mode.', |
| 320 |
|
'jetpack' |
| 321 |
|
), |
| 322 |
|
esc_url( untrailingslashit( self::$wpcom_home_url ) ), |
| 323 |
|
self::prepare_url_for_display( esc_url( self::$wpcom_home_url ) ) |
| 324 |
|
), |
| 325 |
|
array( 'a' => array( 'href' => array() ) ) |
| 326 |
|
); |
| 327 |
|
|
| 328 |
|
/** |
| 329 |
|
* Allows overriding of the default text used to explain the confirm safe mode action. |
| 330 |
|
* |
| 331 |
|
* @since 4.4.0 |
| 332 |
|
* |
|
@@ 351-366 (lines=16) @@
|
| 348 |
|
return apply_filters( 'jetpack_idc_confirm_safe_mode_button_text', $string ); |
| 349 |
|
} |
| 350 |
|
|
| 351 |
|
function get_first_step_fix_connection_action_explanation() { |
| 352 |
|
$html = wp_kses( |
| 353 |
|
sprintf( |
| 354 |
|
__( |
| 355 |
|
'If this is a separate and new website, or the new home of <a href="%1$s">%2$s</a>, |
| 356 |
|
we recommend turning Safe Mode off, and re-establishing your connection to WordPress.com.', |
| 357 |
|
'jetpack' |
| 358 |
|
), |
| 359 |
|
esc_url( untrailingslashit( self::$wpcom_home_url ) ), |
| 360 |
|
self::prepare_url_for_display( esc_url( self::$wpcom_home_url ) ) |
| 361 |
|
), |
| 362 |
|
array( 'a' => array( 'href' => array() ) ) |
| 363 |
|
); |
| 364 |
|
|
| 365 |
|
/** |
| 366 |
|
* Allows overriding of the default text used to explain the fix Jetpack connection action. |
| 367 |
|
* |
| 368 |
|
* @since 4.4.0 |
| 369 |
|
* |