WordPress.org

Make WordPress Core

Changeset 7673


Ignore:
Timestamp:
04/14/08 20:19:15 (6 years ago)
Author:
ryan
Message:

Suppress exif_read_data() errors. Props tellyworth. fixes #6571 for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/image.php

    r7549 r7673  
    236236    // fetch additional info from exif if available 
    237237    if ( is_callable('exif_read_data') && in_array($sourceImageType, apply_filters('wp_read_image_metadata_types', array(IMAGETYPE_JPEG, IMAGETYPE_TIFF_II, IMAGETYPE_TIFF_MM)) ) ) { 
    238         $exif = exif_read_data( $file ); 
     238        $exif = @exif_read_data( $file ); 
    239239        if (!empty($exif['FNumber'])) 
    240240            $meta['aperture'] = round( wp_exif_frac2dec( $exif['FNumber'] ), 2 ); 
Note: See TracChangeset for help on using the changeset viewer.