[wp-trac] [WordPress Trac] #16458: image_resize() treats all resized images resulting in JPEG as having the .jpg extension

WordPress Trac wp-trac at lists.automattic.com
Wed May 2 20:46:18 UTC 2012


#16458: image_resize() treats all resized images resulting in JPEG as having the
.jpg extension
------------------------------+------------------
 Reporter:  kawauso           |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  3.4
Component:  Filesystem        |     Version:  3.0
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+------------------
Changes (by nacin):

 * keywords:  has-patch dev-feedback => has-patch commit


Comment:

 Fine with [attachment:16458.2.diff]. Note that if ( 'jpeg' != $ext &&
 'jpg' != $ext ) $ext = 'jpg'; is going to be quicker than in_array().

 Unit tests would be nice.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16458#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list