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