Forked from cobaltapps/missing-exif_imagetype-function-fix.php
Created
March 7, 2019 02:02
-
-
Save DalavanCloud/5bb562f92188c64d545e49098651c25e 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