Code Duplication    Length = 16-16 lines in 2 locations

class.jetpack-idc.php 2 locations

@@ 491-506 (lines=16) @@
488
		return apply_filters( 'jetpack_idc_first_step_header_explanation', $html );
489
	}
490
491
	function get_confirm_safe_mode_action_explanation() {
492
		$html = wp_kses(
493
			sprintf(
494
				__(
495
					'Is this website a temporary duplicate of <a href="%1$s">%2$s</a> for the purposes
496
					of testing, staging or development? If so, we recommend keeping it in Safe Mode.',
497
					'jetpack'
498
				),
499
				esc_url( untrailingslashit( self::$wpcom_home_url ) ),
500
				self::prepare_url_for_display( esc_url( self::$wpcom_home_url ) )
501
			),
502
			array( 'a' => array( 'href' => array() ) )
503
		);
504
505
		/**
506
		 * Allows overriding of the default text used to explain the confirm safe mode action.
507
		 *
508
		 * @since 4.4.0
509
		 *
@@ 528-543 (lines=16) @@
525
		return apply_filters( 'jetpack_idc_confirm_safe_mode_button_text', $string );
526
	}
527
528
	function get_first_step_fix_connection_action_explanation() {
529
		$html = wp_kses(
530
			sprintf(
531
				__(
532
					'If this is a separate and new website, or the new home of <a href="%1$s">%2$s</a>,
533
					we recommend turning Safe Mode off, and re-establishing your connection to WordPress.com.',
534
					'jetpack'
535
				),
536
				esc_url( untrailingslashit( self::$wpcom_home_url ) ),
537
				self::prepare_url_for_display( esc_url( self::$wpcom_home_url ) )
538
			),
539
			array( 'a' => array( 'href' => array() ) )
540
		);
541
542
		/**
543
		 * Allows overriding of the default text used to explain the fix Jetpack connection action.
544
		 *
545
		 * @since 4.4.0
546
		 *