diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
index 667049aa3f..5bb8102af2 100644
|
a
|
b
|
function wp_check_filetype_and_ext( $file, $filename, $mimes = null ) { |
| 3199 | 3199 | function wp_get_image_mime( $file ) { |
| 3200 | 3200 | /* |
| 3201 | 3201 | * Use exif_imagetype() to check the mimetype if available or fall back to |
| 3202 | | * getimagesize() if exif isn't avaialbe. If either function throws an Exception |
| | 3202 | * getimagesize() if exif isn't available. If either function throws an Exception |
| 3203 | 3203 | * we assume the file could not be validated. |
| 3204 | 3204 | */ |
| 3205 | 3205 | try { |