[wp-trac] [WordPress Trac] #40017: wp_get_image_mime() returns 'application/octet-stream' for non-image files.
WordPress Trac
noreply at wordpress.org
Mon Apr 10 14:27:25 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 fixed-major | Focuses:
--------------------------------------------------+------------------------
Changes (by swissspidy):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"40403"]:
{{{
#!CommitTicketReference repository="" revision="40403"
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.
Merges [40397] to the 4.7 branch.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40017#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list