Playlists are video by default. props duck_

git-svn-id: https://develop.svn.wordpress.org/trunk@30422 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2014-11-20 13:10:45 +00:00
parent 1023d2bc60
commit 912dbf3fd0

View File

@ -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',