Suppress exif_read_data() errors. Props tellyworth. fixes #6571 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7673 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
02e0c889f7
commit
47c6ee0e09
|
@ -235,7 +235,7 @@ function wp_read_image_metadata( $file ) {
|
|||
|
||||
// fetch additional info from exif if available
|
||||
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)) ) ) {
|
||||
$exif = exif_read_data( $file );
|
||||
$exif = @exif_read_data( $file );
|
||||
if (!empty($exif['FNumber']))
|
||||
$meta['aperture'] = round( wp_exif_frac2dec( $exif['FNumber'] ), 2 );
|
||||
if (!empty($exif['Model']))
|
||||
|
|
Loading…
Reference in New Issue