Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#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:


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 5 years ago.

Download all attachments as: .zip

Change History (2)

5 years ago

#1 @SergeyBiryukov
5 years 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.