目前, Wp Media Uploader接受.html文件, 由于存在上传误导和病毒html文件的更改, 因此我们希望不接受html文件, 有人可以解释一下如何在WP中执行此操作
#1
利用wordpress的upload_mimes钩子取消设置任何文件扩展名。该代码转到functions.php。
add_filter('upload_mimes', function(array $mimes){
unset($mimes['html']);
return $mimes;
});
来源:
https://www.srcmini02.com/63679.html
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_37592.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57