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
This commit is contained in:
Joe McGill 2017-01-11 16:36:39 +00:00
parent 0df85f5bab
commit 52897df8cd
2 changed files with 2 additions and 2 deletions

View File

@ -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 );

View File

@ -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.