[wp-trac] [WordPress Trac] #40017: wp_get_image_mime() returns 'application/octet-stream' for non-image files.

WordPress Trac noreply at wordpress.org
Sun Apr 9 22:43:06 UTC 2017


#40017: wp_get_image_mime() returns 'application/octet-stream' for non-image files.
--------------------------------------+------------------------
 Reporter:  blobfolio                 |       Owner:  joemcgill
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  4.7.4
Component:  Media                     |     Version:  4.7.1
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------
Changes (by joemcgill):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"40397"]:
 {{{
 #!CommitTicketReference repository="" revision="40397"
 Media: Improve handling of non-image files in wp_get_image_mime.

 This prevents non-image fileypes from returning a mime type of
 "application/octet-stream" when `exif_imagetype()` returns `false`.

 Props blobfolio.
 Fixes #40017.
 }}}

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


More information about the wp-trac mailing list