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

See #26631.



git-svn-id: https://develop.svn.wordpress.org/trunk@27245 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2014-02-24 21:09:14 +00:00
parent e46f8428fd
commit a99056fd24
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' );
}
}