Changes between Initial Version and Version 1 of Ticket #39552, comment 8
- Timestamp:
- 01/12/2017 05:43:09 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #39552, comment 8
initial v1 1 1 Thanks so much for working on this. I've been testing this, found that in my installation, PHP 5.6.24-1+deb.sury.org~trusty+1, the first part of wp_get_image_mime, the getimagesize function sets the mime to "application/octet-stream" so in the part you added I changed the if to: 2 2 3 if ( ( 0 === strpos($mime , "application/octet-stream") || false === $mime) && function_exists( 'finfo_file' ) ) {3 "if ( ( 0 === strpos($mime , "application/octet-stream") OR false === $mime) && function_exists( 'finfo_file' ) ) {" 4 4 5 5 Of course why that is happening I have no idea, doesn't match php docs, what version of php are you testing on?