@@ 375-390 (lines=16) @@ | ||
372 | </div> |
|
373 | <?php } |
|
374 | ||
375 | function get_first_step_header_lead() { |
|
376 | $html = wp_kses( |
|
377 | sprintf( |
|
378 | __( |
|
379 | '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>.', |
|
380 | 'jetpack' |
|
381 | ), |
|
382 | esc_url( self::SAFE_MODE_DOC_LINK ), |
|
383 | esc_url( self::$wpcom_home_url ), |
|
384 | self::prepare_url_for_display( esc_url_raw( self::$wpcom_home_url ) ) |
|
385 | ), |
|
386 | array( 'a' => array( 'href' => array() ) ) |
|
387 | ); |
|
388 | ||
389 | /** |
|
390 | * Allows overriding of the default header text in the first step of the Safe Mode notice. |
|
391 | * |
|
392 | * @since 4.4.0 |
|
393 | * |
|
@@ 422-437 (lines=16) @@ | ||
419 | return apply_filters( 'jetpack_idc_first_step_header_explanation', $html ); |
|
420 | } |
|
421 | ||
422 | function get_confirm_safe_mode_action_explanation() { |
|
423 | $html = wp_kses( |
|
424 | sprintf( |
|
425 | __( |
|
426 | 'Is this website a temporary duplicate of <a href="%1$s">%2$s</a> for the purposes |
|
427 | of testing, staging or development? If so, we recommend keeping it in Safe Mode.', |
|
428 | 'jetpack' |
|
429 | ), |
|
430 | esc_url( untrailingslashit( self::$wpcom_home_url ) ), |
|
431 | self::prepare_url_for_display( esc_url( self::$wpcom_home_url ) ) |
|
432 | ), |
|
433 | array( 'a' => array( 'href' => array() ) ) |
|
434 | ); |
|
435 | ||
436 | /** |
|
437 | * Allows overriding of the default text used to explain the confirm safe mode action. |
|
438 | * |
|
439 | * @since 4.4.0 |
|
440 | * |
|
@@ 459-474 (lines=16) @@ | ||
456 | return apply_filters( 'jetpack_idc_confirm_safe_mode_button_text', $string ); |
|
457 | } |
|
458 | ||
459 | function get_first_step_fix_connection_action_explanation() { |
|
460 | $html = wp_kses( |
|
461 | sprintf( |
|
462 | __( |
|
463 | 'If this is a separate and new website, or the new home of <a href="%1$s">%2$s</a>, |
|
464 | we recommend turning Safe Mode off, and re-establishing your connection to WordPress.com.', |
|
465 | 'jetpack' |
|
466 | ), |
|
467 | esc_url( untrailingslashit( self::$wpcom_home_url ) ), |
|
468 | self::prepare_url_for_display( esc_url( self::$wpcom_home_url ) ) |
|
469 | ), |
|
470 | array( 'a' => array( 'href' => array() ) ) |
|
471 | ); |
|
472 | ||
473 | /** |
|
474 | * Allows overriding of the default text used to explain the fix Jetpack connection action. |
|
475 | * |
|
476 | * @since 4.4.0 |
|
477 | * |