From d393e3862423890e6f32c79f24b3c23409f45cb1 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 24 Feb 2014 21:05:16 +0000 Subject: [PATCH] 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 --- wp-includes/media.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-includes/media.php b/wp-includes/media.php index ed5d363f08..04605512e8 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -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 )