Code Duplication    Length = 5-5 lines in 2 locations

src/wp-includes/media.php 2 locations

@@ 2301-2305 (lines=5) @@
2298
	);
2299
2300
	// These ones should just be omitted altogether if they are blank
2301
	foreach ( array( 'loop', 'autoplay', 'preload' ) as $a ) {
2302
		if ( empty( $html_atts[$a] ) ) {
2303
			unset( $html_atts[$a] );
2304
		}
2305
	}
2306
2307
	$attr_strings = array();
2308
	foreach ( $html_atts as $k => $v ) {
@@ 2540-2544 (lines=5) @@
2537
	);
2538
2539
	// These ones should just be omitted altogether if they are blank
2540
	foreach ( array( 'poster', 'loop', 'autoplay', 'preload' ) as $a ) {
2541
		if ( empty( $html_atts[$a] ) ) {
2542
			unset( $html_atts[$a] );
2543
		}
2544
	}
2545
2546
	$attr_strings = array();
2547
	foreach ( $html_atts as $k => $v ) {