[wp-trac] [WordPress Trac] #40101: Cannot upload WOFF files (unless you're a multisite super-admin?)
WordPress Trac
noreply at wordpress.org
Wed Mar 15 00:51:31 UTC 2017
#40101: Cannot upload WOFF files (unless you're a multisite super-admin?)
--------------------------+--------------------
Reporter: eddiemcham | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.7.4
Component: Upload | Version: 4.7.3
Severity: blocker | Resolution:
Keywords: | Focuses:
--------------------------+--------------------
Comment (by SergeyBiryukov):
Replying to [comment:14 eddiemcham]:
> I modified our ''functions.php'' to redefine WOFFs as '''application
/font-woff'''
Why not `application/octet-stream`, as you indicated in comment:11?
> Did something else change recently in WP that only allows multisite
super-admins to upload WOFFs?
Multisite super admins have the [source:tags/4.7.3/src/wp-
includes/capabilities.php#L338 unfiltered_upload] capability, so no
additional file type checks are performed. That's not a recent change, but
it would explain the difference in results.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40101#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list