From 912dbf3fd00c2b88cbebd3f3b714df041bf1912a Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 20 Nov 2014 13:10:45 +0000 Subject: [PATCH] Playlists are video by default. props duck_ git-svn-id: https://develop.svn.wordpress.org/trunk@30422 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/media.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index 1ab9a61cfd..48be78e6fc 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -1226,6 +1226,10 @@ function wp_playlist_shortcode( $attr ) { $id = intval( $atts['id'] ); + if ( $atts['type'] !== 'audio' ) { + $atts['type'] = 'video'; + } + $args = array( 'post_status' => 'inherit', 'post_type' => 'attachment',