WordPress: Allow SVG Upload to the Media Library

Copy+Paste this to your theme’s functions.php to add support to SVG upload: