Commit 81d3a3c5 authored by Scott Taylor's avatar Scott Taylor
Browse files

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: https://core.svn.wordpress.org/trunk@27101 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent ea836253
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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 )