Why does Wordpress not permit svg image files by default? Why does Wordpress not permit svg image files by default? wordpress wordpress

Why does Wordpress not permit svg image files by default?


SVG files are fairly rich in that they contain XML and even JavaScript. As such, the processing of these files is riskier than processing simpler image formats.


SVG image type not showing in wordpress

function my_media_types($media_types){    $media_types['svg'] = 'image/svg+xml';     $media_types['psd'] = 'image/vnd.adobe.photoshop';     return $media_types;}add_filter('upload_mimes', 'my_media_types', 1, 1);

by defalut wordpress not support svg because svg conveted to xml file when you can set .svg image than it's all data as a xml format for security reason wordpress not allow by defalut svg or site hacked by xml file because xml show all data