[wp-trac] [WordPress Trac] #15606: Remove Hardcoded Image Extensions
WordPress Trac
noreply at wordpress.org
Thu May 22 06:58:09 UTC 2014
#15606: Remove Hardcoded Image Extensions
-------------------------------------------+-----------------------------
Reporter: acumensystems | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone: Future Release
Component: Media | Version:
Severity: normal | Resolution: invalid
Keywords: reporter-feedback needs-patch | Focuses:
-------------------------------------------+-----------------------------
Changes (by ericlewis):
* status: new => closed
* resolution: => invalid
Comment:
Images will always have a top-level media type of "image". Their mime-
types will always take the format of "image/[subtype]" (See
[http://tools.ietf.org/html/rfc2046#section-4.2 RFC-2046]).
So with this check: `'image/' == substr($post->post_mime_type, 0, 6)`
we're all good. Closing this out.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/15606#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list