|
@@ 388-403 (lines=16) @@
|
| 385 |
|
</div> |
| 386 |
|
<?php } |
| 387 |
|
|
| 388 |
|
function get_first_step_header_lead() { |
| 389 |
|
$html = wp_kses( |
| 390 |
|
sprintf( |
| 391 |
|
__( |
| 392 |
|
'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>.', |
| 393 |
|
'jetpack' |
| 394 |
|
), |
| 395 |
|
esc_url( self::SAFE_MODE_DOC_LINK ), |
| 396 |
|
esc_url( self::$wpcom_home_url ), |
| 397 |
|
self::prepare_url_for_display( esc_url_raw( self::$wpcom_home_url ) ) |
| 398 |
|
), |
| 399 |
|
array( 'a' => array( 'href' => array() ) ) |
| 400 |
|
); |
| 401 |
|
|
| 402 |
|
/** |
| 403 |
|
* Allows overriding of the default header text in the first step of the Safe Mode notice. |
| 404 |
|
* |
| 405 |
|
* @since 4.4.0 |
| 406 |
|
* |
|
@@ 435-450 (lines=16) @@
|
| 432 |
|
return apply_filters( 'jetpack_idc_first_step_header_explanation', $html ); |
| 433 |
|
} |
| 434 |
|
|
| 435 |
|
function get_confirm_safe_mode_action_explanation() { |
| 436 |
|
$html = wp_kses( |
| 437 |
|
sprintf( |
| 438 |
|
__( |
| 439 |
|
'Is this website a temporary duplicate of <a href="%1$s">%2$s</a> for the purposes |
| 440 |
|
of testing, staging or development? If so, we recommend keeping it in Safe Mode.', |
| 441 |
|
'jetpack' |
| 442 |
|
), |
| 443 |
|
esc_url( untrailingslashit( self::$wpcom_home_url ) ), |
| 444 |
|
self::prepare_url_for_display( esc_url( self::$wpcom_home_url ) ) |
| 445 |
|
), |
| 446 |
|
array( 'a' => array( 'href' => array() ) ) |
| 447 |
|
); |
| 448 |
|
|
| 449 |
|
/** |
| 450 |
|
* Allows overriding of the default text used to explain the confirm safe mode action. |
| 451 |
|
* |
| 452 |
|
* @since 4.4.0 |
| 453 |
|
* |
|
@@ 472-487 (lines=16) @@
|
| 469 |
|
return apply_filters( 'jetpack_idc_confirm_safe_mode_button_text', $string ); |
| 470 |
|
} |
| 471 |
|
|
| 472 |
|
function get_first_step_fix_connection_action_explanation() { |
| 473 |
|
$html = wp_kses( |
| 474 |
|
sprintf( |
| 475 |
|
__( |
| 476 |
|
'If this is a separate and new website, or the new home of <a href="%1$s">%2$s</a>, |
| 477 |
|
we recommend turning Safe Mode off, and re-establishing your connection to WordPress.com.', |
| 478 |
|
'jetpack' |
| 479 |
|
), |
| 480 |
|
esc_url( untrailingslashit( self::$wpcom_home_url ) ), |
| 481 |
|
self::prepare_url_for_display( esc_url( self::$wpcom_home_url ) ) |
| 482 |
|
), |
| 483 |
|
array( 'a' => array( 'href' => array() ) ) |
| 484 |
|
); |
| 485 |
|
|
| 486 |
|
/** |
| 487 |
|
* Allows overriding of the default text used to explain the fix Jetpack connection action. |
| 488 |
|
* |
| 489 |
|
* @since 4.4.0 |
| 490 |
|
* |