Make WordPress Core

Ticket #54385: 54385.diff

File 54385.diff, 536 bytes (added by adamsilverstein, 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 ) { 
    842842                }
    843843                if ( ! empty( $exif['FNumber'] ) ) {
    844844                        $meta['aperture'] = round( wp_exif_frac2dec( $exif['FNumber'] ), 2 );
     845                        $meta['aperture'] = round( (float) wp_exif_frac2dec( $exif['FNumber'] ), 2 );
    845846                }
    846847                if ( ! empty( $exif['Model'] ) ) {
    847848                        $meta['camera'] = trim( $exif['Model'] );