Code Duplication    Length = 12-12 lines in 2 locations

src/wp-includes/media.php 2 locations

@@ 2069-2080 (lines=12) @@
2066
2067
		if ( $atts['images'] ) {
2068
			$thumb_id = get_post_thumbnail_id( $attachment->ID );
2069
			if ( ! empty( $thumb_id ) ) {
2070
				list( $src, $width, $height ) = wp_get_attachment_image_src( $thumb_id, 'full' );
2071
				$track['image'] = compact( 'src', 'width', 'height' );
2072
				list( $src, $width, $height ) = wp_get_attachment_image_src( $thumb_id, 'thumbnail' );
2073
				$track['thumb'] = compact( 'src', 'width', 'height' );
2074
			} else {
2075
				$src = wp_mime_type_icon( $attachment->ID );
2076
				$width = 48;
2077
				$height = 64;
2078
				$track['image'] = compact( 'src', 'width', 'height' );
2079
				$track['thumb'] = compact( 'src', 'width', 'height' );
2080
			}
2081
		}
2082
2083
		$tracks[] = $track;
@@ 3257-3268 (lines=12) @@
3254
		}
3255
3256
		$id = get_post_thumbnail_id( $attachment->ID );
3257
		if ( ! empty( $id ) ) {
3258
			list( $src, $width, $height ) = wp_get_attachment_image_src( $id, 'full' );
3259
			$response['image'] = compact( 'src', 'width', 'height' );
3260
			list( $src, $width, $height ) = wp_get_attachment_image_src( $id, 'thumbnail' );
3261
			$response['thumb'] = compact( 'src', 'width', 'height' );
3262
		} else {
3263
			$src = wp_mime_type_icon( $attachment->ID );
3264
			$width = 48;
3265
			$height = 64;
3266
			$response['image'] = compact( 'src', 'width', 'height' );
3267
			$response['thumb'] = compact( 'src', 'width', 'height' );
3268
		}
3269
	}
3270
3271
	if ( function_exists('get_compat_media_markup') )