We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
wp_check_filetype_and_ext
1 parent 62f767c commit e39b2c7Copy full SHA for e39b2c7
plugins/webp-uploads/hooks.php
@@ -826,7 +826,7 @@ function webp_uploads_convert_palette_png_to_truecolor( $file ) {
826
if ( 'image/png' !== strtolower( $file['type'] ) ) {
827
return $file;
828
}
829
- } elseif ( 'image/png' !== wp_check_filetype( $file['name'] )['type'] ) {
+ } elseif ( 'image/png' !== wp_check_filetype_and_ext( $file['tmp_name'], $file['name'] )['type'] ) {
830
831
832
0 commit comments