Code Duplication    Length = 12-12 lines in 2 locations

src/wp-includes/media.php 2 locations

@@ 2039-2050 (lines=12) @@
2036
2037
		if ( $atts['images'] ) {
2038
			$thumb_id = get_post_thumbnail_id( $attachment->ID );
2039
			if ( ! empty( $thumb_id ) ) {
2040
				list( $src, $width, $height ) = wp_get_attachment_image_src( $thumb_id, 'full' );
2041
				$track['image'] = compact( 'src', 'width', 'height' );
2042
				list( $src, $width, $height ) = wp_get_attachment_image_src( $thumb_id, 'thumbnail' );
2043
				$track['thumb'] = compact( 'src', 'width', 'height' );
2044
			} else {
2045
				$src = wp_mime_type_icon( $attachment->ID );
2046
				$width = 48;
2047
				$height = 64;
2048
				$track['image'] = compact( 'src', 'width', 'height' );
2049
				$track['thumb'] = compact( 'src', 'width', 'height' );
2050
			}
2051
		}
2052
2053
		$tracks[] = $track;
@@ 3183-3194 (lines=12) @@
3180
		}
3181
3182
		$id = get_post_thumbnail_id( $attachment->ID );
3183
		if ( ! empty( $id ) ) {
3184
			list( $src, $width, $height ) = wp_get_attachment_image_src( $id, 'full' );
3185
			$response['image'] = compact( 'src', 'width', 'height' );
3186
			list( $src, $width, $height ) = wp_get_attachment_image_src( $id, 'thumbnail' );
3187
			$response['thumb'] = compact( 'src', 'width', 'height' );
3188
		} else {
3189
			$src = wp_mime_type_icon( $attachment->ID );
3190
			$width = 48;
3191
			$height = 64;
3192
			$response['image'] = compact( 'src', 'width', 'height' );
3193
			$response['thumb'] = compact( 'src', 'width', 'height' );
3194
		}
3195
	}
3196
3197
	if ( function_exists('get_compat_media_markup') )