Code Duplication    Length = 5-5 lines in 2 locations

src/wp-includes/media.php 2 locations

@@ 2331-2335 (lines=5) @@
2328
	);
2329
2330
	// These ones should just be omitted altogether if they are blank
2331
	foreach ( array( 'loop', 'autoplay', 'preload' ) as $a ) {
2332
		if ( empty( $html_atts[$a] ) ) {
2333
			unset( $html_atts[$a] );
2334
		}
2335
	}
2336
2337
	$attr_strings = array();
2338
	foreach ( $html_atts as $k => $v ) {
@@ 2588-2592 (lines=5) @@
2585
	);
2586
2587
	// These ones should just be omitted altogether if they are blank
2588
	foreach ( array( 'poster', 'loop', 'autoplay', 'preload' ) as $a ) {
2589
		if ( empty( $html_atts[$a] ) ) {
2590
			unset( $html_atts[$a] );
2591
		}
2592
	}
2593
2594
	$attr_strings = array();
2595
	foreach ( $html_atts as $k => $v ) {