[wp-trac] [WordPress Trac] #28077: Use exif_imagetype instead of getimagesize in file_is_displayable_image

WordPress Trac noreply at wordpress.org
Sat May 24 15:45:00 UTC 2014


#28077: Use exif_imagetype instead of getimagesize in file_is_displayable_image
---------------------------+------------------------------
 Reporter:  joehoyle       |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Media          |     Version:  3.9
 Severity:  normal         |  Resolution:
 Keywords:  needs-refresh  |     Focuses:
---------------------------+------------------------------
Changes (by ericlewis):

 * keywords:   => needs-refresh


Comment:

 Sounds like a minor improvement, but definitely a safer bet than
 `getimagesize()`. Anyone else into this?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28077#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list