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