Opened 12 years ago
Closed 12 years ago
#20990 closed enhancement (fixed)
Add filter information to get_allowed_mime_types() inline docs
Reported by: | lspcity | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | normal | Version: | 3.4 |
Component: | Inline Docs | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
In /wp-includes/functions.php there exists a function named get_allowed_mime_types().
In this function, all allowed mime types are hard-coded. There is no way to extend the list of mime types. So it's not possible to upload svg-files.
Please add SVG-files to this list:
'svg' => 'image/svg+xml',
Attachments (1)
Change History (7)
#3
@
12 years ago
No worries - doc block should probably be updated to reflect the filter being used. Patch attached.
#4
@
12 years ago
- Component changed from Upload to Inline Docs
- Keywords has-patch commit added
- Milestone changed from Awaiting Review to 3.5
Note: See
TracTickets for help on using
tickets.
The list is filtered.
You can add the functionality with a very minimal plugin.