[wp-trac] [WordPress Trac] #20990: Support SVG in mime types
WordPress Trac
wp-trac at lists.automattic.com
Sat Jun 16 17:34:29 UTC 2012
#20990: Support SVG in mime types
-------------------------+-----------------------------
Reporter: lspcity | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upload | Version: 3.4
Severity: normal | Keywords:
-------------------------+-----------------------------
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',
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20990>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list