Ticket #54385: 54385.diff
File 54385.diff, 536 bytes (added by , 3 years ago) |
---|
-
src/wp-admin/includes/image.php
diff --git src/wp-admin/includes/image.php src/wp-admin/includes/image.php index d8d5d5b34b..f84dbbfeba 100644
function wp_read_image_metadata( $file ) { 842 842 } 843 843 if ( ! empty( $exif['FNumber'] ) ) { 844 844 $meta['aperture'] = round( wp_exif_frac2dec( $exif['FNumber'] ), 2 ); 845 $meta['aperture'] = round( (float) wp_exif_frac2dec( $exif['FNumber'] ), 2 ); 845 846 } 846 847 if ( ! empty( $exif['Model'] ) ) { 847 848 $meta['camera'] = trim( $exif['Model'] );