Make WordPress Core

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


Ignore:
Timestamp:
01/12/2017 05:48:53 AM (7 years ago)
Author:
ralva83702
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #39552, comment 8

    v1 v2  
    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:
     1Thanks 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 image_type_to_mime_type function sets the mime to "application/octet-stream" so in the part you added I changed the if to:
    22
    33 "if ( ( 0 === strpos($mime , "application/octet-stream") OR  false === $mime) && function_exists( 'finfo_file' ) ) {"