@@ 702-722 (lines=21) @@ | ||
699 | * |
|
700 | * @return string |
|
701 | */ |
|
702 | public function get_first_step_header_lead() { |
|
703 | $html = wp_kses( |
|
704 | sprintf( |
|
705 | /* translators: %s: Safe mode docs URL and site URL. */ |
|
706 | __( '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>.', 'jetpack' ), |
|
707 | esc_url( self::get_safe_mod_doc_url() ), |
|
708 | esc_url( self::$wpcom_home_url ), |
|
709 | self::prepare_url_for_display( esc_url_raw( self::$wpcom_home_url ) ) |
|
710 | ), |
|
711 | array( 'a' => array( 'href' => array() ) ) |
|
712 | ); |
|
713 | ||
714 | /** |
|
715 | * Allows overriding of the default header text in the first step of the Safe Mode notice. |
|
716 | * |
|
717 | * @param string $html The HTML to be displayed. |
|
718 | * |
|
719 | * @since 4.4.0 |
|
720 | */ |
|
721 | return apply_filters( 'jetpack_idc_first_step_header_lead', $html ); |
|
722 | } |
|
723 | ||
724 | /** |
|
725 | * Returns the first step header explanation. |
|
@@ 754-773 (lines=20) @@ | ||
751 | * |
|
752 | * @return string |
|
753 | */ |
|
754 | public function get_confirm_safe_mode_action_explanation() { |
|
755 | $html = wp_kses( |
|
756 | sprintf( |
|
757 | /* translators: %s: Site URL. */ |
|
758 | __( 'Is this website a temporary duplicate of <a href="%1$s">%2$s</a> for the purposes of testing, staging or development? If so, we recommend keeping it in Safe Mode.', 'jetpack' ), |
|
759 | esc_url( untrailingslashit( self::$wpcom_home_url ) ), |
|
760 | self::prepare_url_for_display( esc_url( self::$wpcom_home_url ) ) |
|
761 | ), |
|
762 | array( 'a' => array( 'href' => array() ) ) |
|
763 | ); |
|
764 | ||
765 | /** |
|
766 | * Allows overriding of the default text used to explain the confirm safe mode action. |
|
767 | * |
|
768 | * @param string $html The HTML to be displayed. |
|
769 | * |
|
770 | * @since 4.4.0 |
|
771 | */ |
|
772 | return apply_filters( 'jetpack_idc_confirm_safe_mode_explanation', $html ); |
|
773 | } |
|
774 | ||
775 | /** |
|
776 | * Returns the confirm safe mode button text. |
|
@@ 798-817 (lines=20) @@ | ||
795 | * |
|
796 | * @return string |
|
797 | */ |
|
798 | public function get_first_step_fix_connection_action_explanation() { |
|
799 | $html = wp_kses( |
|
800 | sprintf( |
|
801 | /* translators: %s: Site URL. */ |
|
802 | __( 'If this is a separate and new website, or the new home of <a href="%1$s">%2$s</a>, we recommend turning Safe Mode off, and re-establishing your connection to WordPress.com.', 'jetpack' ), |
|
803 | esc_url( untrailingslashit( self::$wpcom_home_url ) ), |
|
804 | self::prepare_url_for_display( esc_url( self::$wpcom_home_url ) ) |
|
805 | ), |
|
806 | array( 'a' => array( 'href' => array() ) ) |
|
807 | ); |
|
808 | ||
809 | /** |
|
810 | * Allows overriding of the default text used to explain the fix Jetpack connection action. |
|
811 | * |
|
812 | * @param string $html The HTML to be displayed. |
|
813 | * |
|
814 | * @since 4.4.0 |
|
815 | */ |
|
816 | return apply_filters( 'jetpack_idc_first_fix_connection_explanation', $html ); |
|
817 | } |
|
818 | ||
819 | /** |
|
820 | * Returns the first step fix connection button text. |