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: http://core.svn.wordpress.org/trunk@27102 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-02-24 21:10:12 +00:00
parent d393e38624
commit d5c0574c94
1 changed files with 1 additions and 1 deletions

View File

@ -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' );
}
}