mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Media: Fix exif_imagetype check in wp_get_image_mime
This is a follow up to [39831]. Props gitlost. See #11946. git-svn-id: https://develop.svn.wordpress.org/trunk@39850 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user