Add filter information to get_allowed_mime_types() inline docs
|Reported by:||lspcity||Owned by:||nacin|
|Component:||Inline Docs||Keywords:||has-patch commit|
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',
Change History (7)
comment:4 SergeyBiryukov — 21 months ago
- Component changed from Upload to Inline Docs
- Keywords has-patch commit added
- Milestone changed from Awaiting Review to 3.5
comment:5 SergeyBiryukov — 21 months ago
- Summary changed from Support SVG in mime types to Add filter information to get_allowed_mime_types() inline docs