Code Duplication    Length = 12-12 lines in 2 locations

wp-includes/media.php 2 locations

@@ 2055-2066 (lines=12) @@
2052
2053
		if ( $atts['images'] ) {
2054
			$thumb_id = get_post_thumbnail_id( $attachment->ID );
2055
			if ( ! empty( $thumb_id ) ) {
2056
				list( $src, $width, $height ) = wp_get_attachment_image_src( $thumb_id, 'full' );
2057
				$track['image'] = compact( 'src', 'width', 'height' );
2058
				list( $src, $width, $height ) = wp_get_attachment_image_src( $thumb_id, 'thumbnail' );
2059
				$track['thumb'] = compact( 'src', 'width', 'height' );
2060
			} else {
2061
				$src = wp_mime_type_icon( $attachment->ID );
2062
				$width = 48;
2063
				$height = 64;
2064
				$track['image'] = compact( 'src', 'width', 'height' );
2065
				$track['thumb'] = compact( 'src', 'width', 'height' );
2066
			}
2067
		}
2068
2069
		$tracks[] = $track;
@@ 3205-3216 (lines=12) @@
3202
		}
3203
3204
		$id = get_post_thumbnail_id( $attachment->ID );
3205
		if ( ! empty( $id ) ) {
3206
			list( $src, $width, $height ) = wp_get_attachment_image_src( $id, 'full' );
3207
			$response['image'] = compact( 'src', 'width', 'height' );
3208
			list( $src, $width, $height ) = wp_get_attachment_image_src( $id, 'thumbnail' );
3209
			$response['thumb'] = compact( 'src', 'width', 'height' );
3210
		} else {
3211
			$src = wp_mime_type_icon( $attachment->ID );
3212
			$width = 48;
3213
			$height = 64;
3214
			$response['image'] = compact( 'src', 'width', 'height' );
3215
			$response['thumb'] = compact( 'src', 'width', 'height' );
3216
		}
3217
	}
3218
3219
	if ( function_exists('get_compat_media_markup') )