Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #39552, comment 8


Ignore:
Timestamp:
01/12/2017 05:43:09 AM (8 years ago)
Author:
ralva83702
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #39552, comment 8

    initial v1  
    11Thanks 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:
    22
    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' ) ) {"
    44
    55Of course why that is happening I have no idea, doesn't match php docs, what version of php are you testing on?