From 90cd7353b38deae3758a06fc2024495f2df6d130 Mon Sep 17 00:00:00 2001 From: Joe McGill Date: Wed, 11 Jan 2017 16:42:56 +0000 Subject: [PATCH] Media: Fix exif_imagetype check in wp_get_image_mime This is a follow up to [39831]. Merges [39850] to the 4.3 branch. Built from https://develop.svn.wordpress.org/branches/4.3@39855 git-svn-id: http://core.svn.wordpress.org/branches/4.3@39792 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 9a16cfcae8..0b52f8f7bd 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -2191,7 +2191,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 );