#21594 closed defect (bug) (fixed)
Allow fetching unfiltered allowed mime types list
| Reported by: | ryan | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | General | Version: | 3.4.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
In #11668, do_enclose() gained mime type checking. It uses get_allowed_mime_types(). However, multisite installs greatly restrict the mime list when they run check_upload_mimes() on the upload_mimes filter. do_enclose() needs access to the full list. Introducing get_mime_types() and making get_allowed_mime_types() a wrapper could accommodate this.
Attachments (2)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
While in here we can also address #21299.