Avoid an undefined index notice in wp_read_video_metadata(). props ocean90. fixes #23953.
git-svn-id: http://core.svn.wordpress.org/trunk@23923 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bcb9eef7cd
commit
8d546ad739
|
@ -2503,8 +2503,10 @@ function wp_read_video_metadata( $file ) {
|
|||
if ( ! empty( $data['video']['codec'] ) )
|
||||
$metadata['codec'] = $data['video']['codec'];
|
||||
|
||||
unset( $data['audio']['streams'] );
|
||||
$metadata['audio'] = $data['audio'];
|
||||
if ( ! empty( $data['audio'] ) ) {
|
||||
unset( $data['audio']['streams'] );
|
||||
$metadata['audio'] = $data['audio'];
|
||||
}
|
||||
|
||||
wp_add_id3_tag_data( $metadata, $data );
|
||||
|
||||
|
|
Loading…
Reference in New Issue