Commit 791f0037 authored by Scott Taylor's avatar Scott Taylor
Browse files

Get the proper image size for an item's thumb in playlist JSON.

See #26631.


Built from https://develop.svn.wordpress.org/trunk@27245


git-svn-id: https://core.svn.wordpress.org/trunk@27102 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent 81d3a3c5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1100,7 +1100,7 @@ function wp_get_playlist( $attr, $type ) {
			if ( ! empty( $id ) ) {
				list( $src, $width, $height ) = wp_get_attachment_image_src( $id, 'full' );
				$track['image'] = compact( 'src', 'width', 'height' );
				list( $src, $width, $height ) = wp_get_attachment_image_src( $id, 'thumb' );
				list( $src, $width, $height ) = wp_get_attachment_image_src( $id, 'thumbnail' );
				$track['thumb'] = compact( 'src', 'width', 'height' );
			}
		}