WordPress.org

Make WordPress Core

Changeset 27245


Ignore:
Timestamp:
02/24/2014 09:09:14 PM (7 years ago)
Author:
wonderboymusic
Message:

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

See #26631.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media.php

    r27244 r27245  
    11011101                list( $src, $width, $height ) = wp_get_attachment_image_src( $id, 'full' );
    11021102                $track['image'] = compact( 'src', 'width', 'height' );
    1103                 list( $src, $width, $height ) = wp_get_attachment_image_src( $id, 'thumb' );
     1103                list( $src, $width, $height ) = wp_get_attachment_image_src( $id, 'thumbnail' );
    11041104                $track['thumb'] = compact( 'src', 'width', 'height' );
    11051105            }
Note: See TracChangeset for help on using the changeset viewer.