[wp-trac] [WordPress Trac] #28907: media_handle_upload calls wp_read_image_metadata on video files, causing errors and timeouts.
WordPress Trac
noreply at wordpress.org
Thu Sep 11 20:14:57 UTC 2014
#28907: media_handle_upload calls wp_read_image_metadata on video files, causing
errors and timeouts.
--------------------------+------------------------------
Reporter: slangley | Owner: wonderboymusic
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 3.8
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: performance
--------------------------+------------------------------
Changes (by wonderboymusic):
* owner: => wonderboymusic
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"29737"]:
{{{
#!CommitTicketReference repository="" revision="29737"
In `media_handle_upload()`, don't call `wp_read_image_metadata()` on
things that aren't images (like videos). We never caught this error,
because we are suppressing it by calling `@wp_read_image_metadata()`.
Props jrf for the initial patch.
Fixes #28907.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28907#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list