[wp-trac] [WordPress Trac] #39963: MIME Alias Handling
WordPress Trac
noreply at wordpress.org
Thu Mar 23 21:24:51 UTC 2017
#39963: MIME Alias Handling
--------------------------------------+------------------------------
Reporter: blobfolio | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Comment (by blobfolio):
The Features Plugin is yet another way to give this a test!
The code is identical to this ticket's latest patch (save for a couple
changed paths), except by necessity it has to duplicate the validation
work ''after'' `wp_check_filetype_and_ext()` has finished its run (which
it does by hooking into the eponymous filter).
The code for the plugin version is hosted at https://github.com/Blobfolio
/blob-mimes/tree/master/build/WordPress/feature-plugin, but again,
contains the same functions as the patch.
For those interested in unit testing, please apply the patch instead.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39963#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list