Skip to content
Snippets Groups Projects

Blacklist pdf

Merged putro requested to merge blacklist_pdf into master
1 unresolved thread
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
+ 4
1
@@ -26,11 +26,14 @@ class WP_Mat {
// Check if the mime type is one of those we want to clean up.
// Use a blacklist, currently empty. Send everything by default
// except video.
// except video, and pdf.
function is_supported_mime_type($mimetype) {
if (substr($mimetype, 0, 6) === "video/") {
return false;
}
if ($mimetype === "application/pdf") {
return false;
}
return true;
}
Loading