From 9d9ab96249c2b41f5aa629a4476c228f0e802623 Mon Sep 17 00:00:00 2001 From: Joe McGill Date: Wed, 11 Jan 2017 16:35:21 +0000 Subject: [PATCH] Media: Fix exif_imagetype check in wp_get_image_mime This is a follow up to [39831]. Props gitlost. See #11946. git-svn-id: https://develop.svn.wordpress.org/trunk@39850 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 28725e7547..2ee2be8a90 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -2365,7 +2365,7 @@ function wp_get_image_mime( $file ) { * we assume the file could not be validated. */ try { - if ( ! is_callable( 'exif_imagetype' ) ) { + if ( is_callable( 'exif_imagetype' ) ) { $mime = image_type_to_mime_type( exif_imagetype( $file ) ); } elseif ( function_exists( 'getimagesize' ) ) { $imagesize = getimagesize( $file );