[wp-trac] [WordPress Trac] #18730: media_sideload_image() doesn't handle dynamic image url's well
WordPress Trac
wp-trac at lists.automattic.com
Wed Sep 21 10:49:11 UTC 2011
#18730: media_sideload_image() doesn't handle dynamic image url's well
------------------------------+-----------------------------
Reporter: dd32 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Warnings/Notices | Version:
Severity: normal | Keywords:
------------------------------+-----------------------------
Example URL:
http://www.tumblr.com/photo/1280/10464566223/1/tumblr_lrum2xzkpC1r3z8e3
As a result, the preg_match() for the file extension fails and issues a
notice (no file extension in that url, although the redirection location
does have).
The handling of a download failure also seems hairy, upon failure, it
still attempts further importing before loading - I haven't looked into
that too far.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18730>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list