Skip to content
Snippets Groups Projects
Commit 3be0b1b7 authored by putro's avatar putro
Browse files

fix

parent aa7f4f2e
No related branches found
No related tags found
1 merge request!2Blacklist pdf
......@@ -30,7 +30,8 @@ class WP_Mat {
function is_supported_mime_type($mimetype) {
if (substr($mimetype, 0, 6) === "video/") {
return false;
if (substr($mimetype, 0, 15) === "application/pdf") {
}
if ($mimetype === "application/pdf") {
return false;
}
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment