diff --git a/wp-includes/media.php b/wp-includes/media.php index edb50029b5..ebcfa0e387 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -1070,9 +1070,9 @@ function wp_get_playlist( $attr, $type ) { 'description' => wptexturize( $attachment->post_content ) ); + $track['meta'] = array(); $meta = wp_get_attachment_metadata( $attachment->ID ); if ( ! empty( $meta ) ) { - $track['meta'] = array(); $keys = array( 'title', 'artist', 'band', 'album', 'genre', 'year', 'length', 'length_formatted' ); foreach ( $keys as $key ) { @@ -1154,7 +1154,7 @@ function wp_get_playlist( $attr, $type ) {
- < controls="controls" preload="metadata" width="">> + < controls="controls" preload="metadata" width="">>