| @@ 670-686 (lines=17) @@ | ||
| 667 | * |
|
| 668 | * @return string |
|
| 669 | */ |
|
| 670 | public function get_second_step_header_lead() { |
|
| 671 | $string = sprintf( |
|
| 672 | /* translators: %s: Site URL. */ |
|
| 673 | esc_html__( 'Is %1$s the new home of %2$s?', 'jetpack' ), |
|
| 674 | untrailingslashit( Jetpack::normalize_url_protocol_agnostic( get_home_url() ) ), |
|
| 675 | untrailingslashit( Jetpack::normalize_url_protocol_agnostic( esc_url_raw( self::$wpcom_home_url ) ) ) |
|
| 676 | ); |
|
| 677 | ||
| 678 | /** |
|
| 679 | * Allows overriding of the default header text in the second step of the Safe Mode notice. |
|
| 680 | * |
|
| 681 | * @param string $html The HTML to be displayed. |
|
| 682 | * |
|
| 683 | * @since 4.4.0 |
|
| 684 | */ |
|
| 685 | return apply_filters( 'jetpack_idc_second_step_header_lead', $string ); |
|
| 686 | } |
|
| 687 | ||
| 688 | /** |
|
| 689 | * Returns the site action explanation. |
|
| @@ 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( |
|