Code Duplication    Length = 3-3 lines in 2 locations

src/wp-includes/formatting.php 1 location

@@ 572-574 (lines=3) @@
569
		$pee = str_replace(array_keys($pre_tags), array_values($pre_tags), $pee);
570
571
	// Restore newlines in all elements.
572
	if ( false !== strpos( $pee, '<!-- wpnl -->' ) ) {
573
		$pee = str_replace( array( ' <!-- wpnl --> ', '<!-- wpnl -->' ), "\n", $pee );
574
	}
575
576
	return $pee;
577
}

src/wp-includes/media.php 1 location

@@ 2577-2579 (lines=3) @@
2574
	}
2575
2576
	if ( ! empty( $content ) ) {
2577
		if ( false !== strpos( $content, "\n" ) ) {
2578
			$content = str_replace( array( "\r\n", "\n", "\t" ), '', $content );
2579
		}
2580
		$html .= trim( $content );
2581
	}
2582