WordPress.org

Make WordPress Core

Changeset 23923


Ignore:
Timestamp:
04/06/2013 12:29:12 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Avoid an undefined index notice in wp_read_video_metadata(). props ocean90. fixes #23953.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r23873 r23923  
    25042504        $metadata['codec'] = $data['video']['codec'];
    25052505
    2506     unset( $data['audio']['streams'] );
    2507     $metadata['audio'] = $data['audio'];
     2506    if ( ! empty( $data['audio'] ) ) {
     2507        unset( $data['audio']['streams'] );
     2508        $metadata['audio'] = $data['audio'];
     2509    }
    25082510
    25092511    wp_add_id3_tag_data( $metadata, $data );
Note: See TracChangeset for help on using the changeset viewer.