Supply mime-type instead of extension for an item's `type` property in playlist JSON.
See #26631. Built from https://develop.svn.wordpress.org/trunk@27244 git-svn-id: http://core.svn.wordpress.org/trunk@27101 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4b66e01e6d
commit
d393e38624
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue