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:
parent
1023d2bc60
commit
912dbf3fd0
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user