Changeset 40397 for trunk/src/wp-includes/functions.php
- Timestamp:
- 04/09/2017 10:43:04 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r40124 r40397 2368 2368 try { 2369 2369 if ( is_callable( 'exif_imagetype' ) ) { 2370 $mime = image_type_to_mime_type( exif_imagetype( $file ) ); 2370 $imagetype = exif_imagetype( $file ); 2371 $mime = ( $imagetype ) ? image_type_to_mime_type( $imagetype ) : false; 2371 2372 } elseif ( function_exists( 'getimagesize' ) ) { 2372 2373 $imagesize = getimagesize( $file );
Note: See TracChangeset
for help on using the changeset viewer.