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