From a99056fd2432d12aec66e3acd6e8d025ce0a86e2 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 24 Feb 2014 21:09:14 +0000 Subject: [PATCH] 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 --- src/wp-includes/media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index 04605512e8..edb50029b5 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -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' ); } }