|
@@ 886-907 (lines=22) @@
|
| 883 |
|
* |
| 884 |
|
* @return string |
| 885 |
|
*/ |
| 886 |
|
public function get_migrate_site_action_explanation() { |
| 887 |
|
$html = wp_kses( |
| 888 |
|
sprintf( |
| 889 |
|
/* translators: %s: Site URL. */ |
| 890 |
|
__( 'Yes. <a href="%1$s">%2$s</a> is replacing <a href="%3$s">%4$s</a>. I would like to migrate my stats and subscribers from <a href="%3$s">%4$s</a> to <a href="%1$s">%2$s</a>.', 'jetpack' ), |
| 891 |
|
esc_url( get_home_url() ), |
| 892 |
|
self::prepare_url_for_display( get_home_url() ), |
| 893 |
|
esc_url( self::$wpcom_home_url ), |
| 894 |
|
untrailingslashit( self::normalize_url_protocol_agnostic( esc_url_raw( self::$wpcom_home_url ) ) ) |
| 895 |
|
), |
| 896 |
|
array( 'a' => array( 'href' => array() ) ) |
| 897 |
|
); |
| 898 |
|
|
| 899 |
|
/** |
| 900 |
|
* Allows overriding of the default text for explaining the migrate site action. |
| 901 |
|
* |
| 902 |
|
* @param string $html The HTML to be displayed. |
| 903 |
|
* |
| 904 |
|
* @since 4.4.0 |
| 905 |
|
*/ |
| 906 |
|
return apply_filters( 'jetpack_idc_migrate_site_explanation', $html ); |
| 907 |
|
} |
| 908 |
|
|
| 909 |
|
/** |
| 910 |
|
* Returns the migrate site button text. |
|
@@ 932-953 (lines=22) @@
|
| 929 |
|
* |
| 930 |
|
* @return string |
| 931 |
|
*/ |
| 932 |
|
public function get_start_fresh_action_explanation() { |
| 933 |
|
$html = wp_kses( |
| 934 |
|
sprintf( |
| 935 |
|
/* translators: %s: Site URL. */ |
| 936 |
|
__( 'No. <a href="%1$s">%2$s</a> is a new and different website that\'s separate from <a href="%3$s">%4$s</a>. It requires a new connection to WordPress.com for new stats and subscribers.', 'jetpack' ), |
| 937 |
|
esc_url( get_home_url() ), |
| 938 |
|
self::prepare_url_for_display( get_home_url() ), |
| 939 |
|
esc_url( self::$wpcom_home_url ), |
| 940 |
|
untrailingslashit( self::normalize_url_protocol_agnostic( esc_url_raw( self::$wpcom_home_url ) ) ) |
| 941 |
|
), |
| 942 |
|
array( 'a' => array( 'href' => array() ) ) |
| 943 |
|
); |
| 944 |
|
|
| 945 |
|
/** |
| 946 |
|
* Allows overriding of the default text for explaining the start fresh action. |
| 947 |
|
* |
| 948 |
|
* @param string $html The HTML to be displayed. |
| 949 |
|
* |
| 950 |
|
* @since 4.4.0 |
| 951 |
|
*/ |
| 952 |
|
return apply_filters( 'jetpack_idc_start_fresh_explanation', $html ); |
| 953 |
|
} |
| 954 |
|
|
| 955 |
|
/** |
| 956 |
|
* Returns the start fresh button text. |