Code Duplication    Length = 23-23 lines in 3 locations

projects/plugins/jetpack/class.jetpack-idc.php 3 locations

@@ 449-471 (lines=23) @@
446
		<?php
447
	}
448
449
	function get_first_step_header_lead() {
450
		$html = wp_kses(
451
			sprintf(
452
				__(
453
					'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>.',
454
					'jetpack'
455
				),
456
				esc_url( self::get_safe_mod_doc_url() ),
457
				esc_url( self::$wpcom_home_url ),
458
				self::prepare_url_for_display( esc_url_raw( self::$wpcom_home_url ) )
459
			),
460
			array( 'a' => array( 'href' => array() ) )
461
		);
462
463
		/**
464
		 * Allows overriding of the default header text in the first step of the Safe Mode notice.
465
		 *
466
		 * @since 4.4.0
467
		 *
468
		 * @param string $html The HTML to be displayed
469
		 */
470
		return apply_filters( 'jetpack_idc_first_step_header_lead', $html );
471
	}
472
473
	function get_first_step_header_explanation() {
474
		$html = wp_kses(
@@ 496-518 (lines=23) @@
493
		return apply_filters( 'jetpack_idc_first_step_header_explanation', $html );
494
	}
495
496
	function get_confirm_safe_mode_action_explanation() {
497
		$html = wp_kses(
498
			sprintf(
499
				__(
500
					'Is this website a temporary duplicate of <a href="%1$s">%2$s</a> for the purposes
501
					of testing, staging or development? If so, we recommend keeping it in Safe Mode.',
502
					'jetpack'
503
				),
504
				esc_url( untrailingslashit( self::$wpcom_home_url ) ),
505
				self::prepare_url_for_display( esc_url( self::$wpcom_home_url ) )
506
			),
507
			array( 'a' => array( 'href' => array() ) )
508
		);
509
510
		/**
511
		 * Allows overriding of the default text used to explain the confirm safe mode action.
512
		 *
513
		 * @since 4.4.0
514
		 *
515
		 * @param string $html The HTML to be displayed
516
		 */
517
		return apply_filters( 'jetpack_idc_confirm_safe_mode_explanation', $html );
518
	}
519
520
	function get_confirm_safe_mode_button_text() {
521
		$string = esc_html__( 'Confirm Safe Mode', 'jetpack' );
@@ 533-555 (lines=23) @@
530
		return apply_filters( 'jetpack_idc_confirm_safe_mode_button_text', $string );
531
	}
532
533
	function get_first_step_fix_connection_action_explanation() {
534
		$html = wp_kses(
535
			sprintf(
536
				__(
537
					'If this is a separate and new website, or the new home of <a href="%1$s">%2$s</a>,
538
					we recommend turning Safe Mode off, and re-establishing your connection to WordPress.com.',
539
					'jetpack'
540
				),
541
				esc_url( untrailingslashit( self::$wpcom_home_url ) ),
542
				self::prepare_url_for_display( esc_url( self::$wpcom_home_url ) )
543
			),
544
			array( 'a' => array( 'href' => array() ) )
545
		);
546
547
		/**
548
		 * Allows overriding of the default text used to explain the fix Jetpack connection action.
549
		 *
550
		 * @since 4.4.0
551
		 *
552
		 * @param string $html The HTML to be displayed
553
		 */
554
		return apply_filters( 'jetpack_idc_first_fix_connection_explanation', $html );
555
	}
556
557
	function get_first_step_fix_connection_button_text() {
558
		$string = esc_html__( "Fix Jetpack's Connection", 'jetpack' );