Code Duplication    Length = 3-3 lines in 2 locations

src/wp-includes/formatting.php 1 location

@@ 578-580 (lines=3) @@
575
		$pee = str_replace(array_keys($pre_tags), array_values($pre_tags), $pee);
576
577
	// Restore newlines in all elements.
578
	if ( false !== strpos( $pee, '<!-- wpnl -->' ) ) {
579
		$pee = str_replace( array( ' <!-- wpnl --> ', '<!-- wpnl -->' ), "\n", $pee );
580
	}
581
582
	return $pee;
583
}

src/wp-includes/media.php 1 location

@@ 2625-2627 (lines=3) @@
2622
	}
2623
2624
	if ( ! empty( $content ) ) {
2625
		if ( false !== strpos( $content, "\n" ) ) {
2626
			$content = str_replace( array( "\r\n", "\n", "\t" ), '', $content );
2627
		}
2628
		$html .= trim( $content );
2629
	}
2630