Make WordPress Core


Ignore:
Timestamp:
01/11/2017 04:37:51 PM (8 years ago)
Author:
joemcgill
Message:

Media: Fix exif_imagetype check in wp_get_image_mime

This is a follow up to [39831].

Merges [39850] to the 4.7 branch.

Location:
branches/4.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.7

  • branches/4.7/src/wp-includes/functions.php

    r39832 r39851  
    23652365     */
    23662366    try {
    2367         if ( ! is_callable( 'exif_imagetype' ) ) {
     2367        if ( is_callable( 'exif_imagetype' ) ) {
    23682368            $mime = image_type_to_mime_type( exif_imagetype( $file ) );
    23692369        } elseif ( function_exists( 'getimagesize' ) ) {
Note: See TracChangeset for help on using the changeset viewer.