@@ 566-584 (lines=19) @@ | ||
563 | return apply_filters( 'jetpack_idc_first_step_fix_connection_button_text', $string ); |
|
564 | } |
|
565 | ||
566 | function get_second_step_header_lead() { |
|
567 | $string = sprintf( |
|
568 | esc_html__( |
|
569 | 'Is %1$s the new home of %2$s?', |
|
570 | 'jetpack' |
|
571 | ), |
|
572 | untrailingslashit( Jetpack::normalize_url_protocol_agnostic( get_home_url() ) ), |
|
573 | untrailingslashit( Jetpack::normalize_url_protocol_agnostic( esc_url_raw( self::$wpcom_home_url ) ) ) |
|
574 | ); |
|
575 | ||
576 | /** |
|
577 | * Allows overriding of the default header text in the second step of the Safe Mode notice. |
|
578 | * |
|
579 | * @since 4.4.0 |
|
580 | * |
|
581 | * @param string $html The HTML to be displayed |
|
582 | */ |
|
583 | return apply_filters( 'jetpack_idc_second_step_header_lead', $string ); |
|
584 | } |
|
585 | ||
586 | function get_migrate_site_action_explanation() { |
|
587 | $html = wp_kses( |
@@ 842-858 (lines=17) @@ | ||
839 | * |
|
840 | * @return string |
|
841 | */ |
|
842 | public function get_second_step_header_lead() { |
|
843 | $string = sprintf( |
|
844 | /* translators: %s: Site URL. */ |
|
845 | esc_html__( 'Is %1$s the new home of %2$s?', 'jetpack' ), |
|
846 | untrailingslashit( self::normalize_url_protocol_agnostic( get_home_url() ) ), |
|
847 | untrailingslashit( self::normalize_url_protocol_agnostic( esc_url_raw( self::$wpcom_home_url ) ) ) |
|
848 | ); |
|
849 | ||
850 | /** |
|
851 | * Allows overriding of the default header text in the second step of the Safe Mode notice. |
|
852 | * |
|
853 | * @param string $html The HTML to be displayed. |
|
854 | * |
|
855 | * @since 4.4.0 |
|
856 | */ |
|
857 | return apply_filters( 'jetpack_idc_second_step_header_lead', $string ); |
|
858 | } |
|
859 | ||
860 | /** |
|
861 | * Returns the site action explanation. |