Ticket #11946: 11946-iscallable.diff
File 11946-iscallable.diff, 545 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/functions.php
diff --git src/wp-includes/functions.php src/wp-includes/functions.php index 28725e75473..2ee2be8a907 100644
function wp_get_image_mime( $file ) { 2365 2365 * we assume the file could not be validated. 2366 2366 */ 2367 2367 try { 2368 if ( !is_callable( 'exif_imagetype' ) ) {2368 if ( is_callable( 'exif_imagetype' ) ) { 2369 2369 $mime = image_type_to_mime_type( exif_imagetype( $file ) ); 2370 2370 } elseif ( function_exists( 'getimagesize' ) ) { 2371 2371 $imagesize = getimagesize( $file );