From 52897df8cdb2ab97f3ebd4c4704e38c1fd684f15 Mon Sep 17 00:00:00 2001 From: Joe McGill Date: Wed, 11 Jan 2017 16:36:39 +0000 Subject: [PATCH] Media: Fix exif_imagetype check in wp_get_image_mime This is a follow up to [39831]. Props gitlost. See #11946. Built from https://develop.svn.wordpress.org/trunk@39850 git-svn-id: http://core.svn.wordpress.org/trunk@39787 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 28725e7547..2ee2be8a90 100644 --- a/wp-includes/functions.php +++ b/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 ); diff --git a/wp-includes/version.php b/wp-includes/version.php index eea3836787..eb083f7399 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-39848'; +$wp_version = '4.8-alpha-39850'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.