[wp-trac] [WordPress Trac] #20990: Support SVG in mime types
WordPress Trac
wp-trac at lists.automattic.com
Sat Jun 16 17:47:08 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 | Resolution:
Keywords: |
-------------------------+------------------------------
Comment (by JustinSainton):
The list is filtered.
You can add the functionality with a very minimal plugin.
{{{
function js_add_mime_type( $mime_types ) {
return array_merge( $mime_types, array( 'svg' => 'image/svg+xml' )
);
}
add_filter( 'upload_mimes', 'js_add_mime_type' );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20990#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list