Fixing a typo. This typo caused ONLY SVG files to be allowed to upload via the media uploader.
One less required parameter and a graceful fail over to a valid implementation type. Props @Phil
I broke everything. I'm sorry, but it had to be done.
Basically how I had approached the problem before was wrong. It is now being done properly using the correct mime/type.
Shortcodes are no longer needed, you can now use SVG files as you would any other image.
Previews now show up in the media area for SVG files.
IMPORTANT: Anyone using the version prior to 2.0 were using shortcodes to display SVG files. You will have to go back and replace those shortcodes with actual image tags. If you're not familiar with HTML, you can just delete the shortcode out of the page/post and then insert the SVG file as you would any other image.
The security cannot be perfect and it is recommended to only provide upload privileges to trusted users.
Props to thedwards for bringing this to my attention.
Added inline styling to tha administration area so SVG attachments will show up in list/grid views.
Props to shield-9 (Daisuke Takahashi) for the code.
Requires: 3.0 or higher Compatible up to: 4.0-beta1 Last Updated: 2014-7-16 Downloads: 13,428