Created
April 25, 2018 20:04
-
-
Save cobaltapps/ae78cd3b5ac9446c94cd37a2ebd4608c to your computer and use it in GitHub Desktop.
Missing exif_imagetype function fix.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( ! function_exists( 'exif_imagetype' ) ) { | |
function exif_imagetype( $filename ) { | |
if ( ( list( $width, $height, $type, $attr ) = getimagesize( $filename ) ) !== false ) | |
return $type; | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment