Ticket #31043: 31043.patch
| File 31043.patch, 729 bytes (added by , 11 years ago) |
|---|
-
src/wp-admin/includes/image.php
338 338 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 ) ) ) ) { 339 339 $exif = @exif_read_data( $file ); 340 340 341 if ( empty( $meta['title'] ) && ! empty( $exif['Title'] ) ) {342 $meta['title'] = trim( $exif['Title'] );343 }344 345 341 if ( ! empty( $exif['ImageDescription'] ) ) { 346 342 mbstring_binary_safe_encoding(); 347 343 $description_length = strlen( $exif['ImageDescription'] );