Changeset 42878
- Timestamp:
- 03/25/2018 08:40:03 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/image.php
r42792 r42878 358 358 } 359 359 360 list( , , $ sourceImageType ) = @getimagesize( $file );360 list( , , $image_type ) = @getimagesize( $file ); 361 361 362 362 /* … … 445 445 * @param array $image_types Image types to check for exif data. 446 446 */ 447 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 ) ) ) ) { 447 $exif_image_types = apply_filters( 'wp_read_image_metadata_types', array( IMAGETYPE_JPEG, IMAGETYPE_TIFF_II, IMAGETYPE_TIFF_MM ) ); 448 449 if ( is_callable( 'exif_read_data' ) && in_array( $image_type, $exif_image_types ) ) { 448 450 $exif = @exif_read_data( $file ); 449 451 … … 524 526 * @since 4.4.0 The `$iptc` parameter was added. 525 527 * 526 * @param array $meta 527 * @param string $file 528 * @param int $ sourceImageType Type of image.529 * @param array $iptc 528 * @param array $meta Image meta data. 529 * @param string $file Path to image file. 530 * @param int $image_type Type of image, one of the `IMAGETYPE_XXX` constants. 531 * @param array $iptc IPTC data. 530 532 */ 531 return apply_filters( 'wp_read_image_metadata', $meta, $file, $ sourceImageType, $iptc );533 return apply_filters( 'wp_read_image_metadata', $meta, $file, $image_type, $iptc ); 532 534 533 535 }
Note: See TracChangeset
for help on using the changeset viewer.