diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index a93852849c..01045f038d 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -2364,7 +2364,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 );