Supply mime-type instead of extension for an item's type property in playlist JSON.

See #26631.



git-svn-id: https://develop.svn.wordpress.org/trunk@27244 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2014-02-24 21:05:00 +00:00
parent 29725ce426
commit e46f8428fd

View File

@ -1063,9 +1063,8 @@ function wp_get_playlist( $attr, $type ) {
$url = wp_get_attachment_url( $attachment->ID );
$ftype = wp_check_filetype( $url, wp_get_mime_types() );
$track = array(
'type' => $type,
'src' => $url,
'type' => $ftype['ext'],
'type' => $ftype['type'],
'title' => get_the_title( $attachment->ID ),
'caption' => wptexturize( $attachment->post_excerpt ),
'description' => wptexturize( $attachment->post_content )