@@ 413-428 (lines=16) @@ | ||
410 | </div> |
|
411 | <?php } |
|
412 | ||
413 | function get_first_step_header_lead() { |
|
414 | $html = wp_kses( |
|
415 | sprintf( |
|
416 | __( |
|
417 | '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>.', |
|
418 | 'jetpack' |
|
419 | ), |
|
420 | esc_url( self::SAFE_MODE_DOC_LINK ), |
|
421 | esc_url( self::$wpcom_home_url ), |
|
422 | self::prepare_url_for_display( esc_url_raw( self::$wpcom_home_url ) ) |
|
423 | ), |
|
424 | array( 'a' => array( 'href' => array() ) ) |
|
425 | ); |
|
426 | ||
427 | /** |
|
428 | * Allows overriding of the default header text in the first step of the Safe Mode notice. |
|
429 | * |
|
430 | * @since 4.4.0 |
|
431 | * |
|
@@ 460-475 (lines=16) @@ | ||
457 | return apply_filters( 'jetpack_idc_first_step_header_explanation', $html ); |
|
458 | } |
|
459 | ||
460 | function get_confirm_safe_mode_action_explanation() { |
|
461 | $html = wp_kses( |
|
462 | sprintf( |
|
463 | __( |
|
464 | 'Is this website a temporary duplicate of <a href="%1$s">%2$s</a> for the purposes |
|
465 | of testing, staging or development? If so, we recommend keeping it in Safe Mode.', |
|
466 | 'jetpack' |
|
467 | ), |
|
468 | esc_url( untrailingslashit( self::$wpcom_home_url ) ), |
|
469 | self::prepare_url_for_display( esc_url( self::$wpcom_home_url ) ) |
|
470 | ), |
|
471 | array( 'a' => array( 'href' => array() ) ) |
|
472 | ); |
|
473 | ||
474 | /** |
|
475 | * Allows overriding of the default text used to explain the confirm safe mode action. |
|
476 | * |
|
477 | * @since 4.4.0 |
|
478 | * |
|
@@ 497-512 (lines=16) @@ | ||
494 | return apply_filters( 'jetpack_idc_confirm_safe_mode_button_text', $string ); |
|
495 | } |
|
496 | ||
497 | function get_first_step_fix_connection_action_explanation() { |
|
498 | $html = wp_kses( |
|
499 | sprintf( |
|
500 | __( |
|
501 | 'If this is a separate and new website, or the new home of <a href="%1$s">%2$s</a>, |
|
502 | we recommend turning Safe Mode off, and re-establishing your connection to WordPress.com.', |
|
503 | 'jetpack' |
|
504 | ), |
|
505 | esc_url( untrailingslashit( self::$wpcom_home_url ) ), |
|
506 | self::prepare_url_for_display( esc_url( self::$wpcom_home_url ) ) |
|
507 | ), |
|
508 | array( 'a' => array( 'href' => array() ) ) |
|
509 | ); |
|
510 | ||
511 | /** |
|
512 | * Allows overriding of the default text used to explain the fix Jetpack connection action. |
|
513 | * |
|
514 | * @since 4.4.0 |
|
515 | * |