解决方法:
修改主题文件functions.php 添加下列代码
add_filter('upload_mimes', 'dmd_upload_mimes');
function dmd_upload_mimes($mimes = array()) {
$mimes['svg'] = 'image/svg+xml';
return $mimes;}
解决方法:
修改主题文件functions.php 添加下列代码
add_filter('upload_mimes', 'dmd_upload_mimes');
function dmd_upload_mimes($mimes = array()) {
$mimes['svg'] = 'image/svg+xml';
return $mimes;}