diff --git src/wp-admin/includes/image.php src/wp-admin/includes/image.php
index d8d5d5b34b..908f35d9b7 100644
|
|
function wp_generate_attachment_metadata( $attachment_id, $file ) { |
651 | 651 | */ |
652 | 652 | function wp_exif_frac2dec( $str ) { |
653 | 653 | if ( false === strpos( $str, '/' ) ) { |
654 | | return $str; |
| 654 | return (float) $str; |
655 | 655 | } |
656 | 656 | |
657 | 657 | list( $numerator, $denominator ) = explode( '/', $str ); |
658 | 658 | if ( ! empty( $denominator ) ) { |
659 | 659 | return $numerator / $denominator; |
660 | 660 | } |
661 | | return $str; |
| 661 | return 0; |
662 | 662 | } |
663 | 663 | |
664 | 664 | /** |