WordPress.org

Make WordPress Core

#23953 closed defect (bug) (fixed)

Check for audio existence in wp_read_video_metadata()

Reported by: ocean90 Owned by: SergeyBiryukov
Milestone: 3.6 Priority: normal
Severity: normal Version: 3.6
Component: Media Keywords: has-patch
Focuses: Cc:

Description

Report: http://wordpress.org/support/topic/36-uploading-webm-ogv-broken

When you upload a movie file without audio output wp_read_video_metadata produces a PHP warning:

Undefined index: audio in /wp-admin/includes/media.php on line 2507

Attachments (1)

23953.patch (561 bytes) - added by ocean90 13 months ago.

Download all attachments as: .zip

Change History (2)

ocean9013 months ago

comment:1 SergeyBiryukov13 months ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 23923:

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

Note: See TracTickets for help on using tickets.