Make WordPress Core

Changeset 39854


Ignore:
Timestamp:
01/11/2017 04:41:17 PM (7 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.4 branch.

Location:
branches/4.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.4

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

    r39835 r39854  
    22722272     */
    22732273    try {
    2274         if ( ! is_callable( 'exif_imagetype' ) ) {
     2274        if ( is_callable( 'exif_imagetype' ) ) {
    22752275            $mime = image_type_to_mime_type( exif_imagetype( $file ) );
    22762276        } elseif ( function_exists( 'getimagesize' ) ) {
Note: See TracChangeset for help on using the changeset viewer.