mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Avoid an undefined index notice in wp_read_video_metadata(). props ocean90. fixes #23953.
git-svn-id: https://develop.svn.wordpress.org/trunk@23923 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9231c52c70
commit
c868bd8540
@ -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
Block a user