[wp-trac] [WordPress Trac] #16693: media_sideload_image() fails on jpeg names
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 28 00:38:31 UTC 2011
#16693: media_sideload_image() fails on jpeg names
--------------------------+-----------------------------
Reporter: numediaweb | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.1
Severity: major | Keywords:
--------------------------+-----------------------------
if you give an image file name with jpeg as extension,
media_sideload_image() returns .jpe file name extension.
the problem is in the function at file: wp-admin/includes/media.php,line
565
{{{
preg_match('/[^\?]+\.(jpg|JPG|jpe|JPE|jpeg|JPEG|gif|GIF|png|PNG)/',
'test.jpeg', $matches);
echo basename($matches[0]); // returns : test.jpe
}}}
this bugs image uploading process; it doesn't allow post thumbnail
generation.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16693>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list