WordPress.org

Make WordPress Core

Changeset 31462


Ignore:
Timestamp:
02/14/2015 09:13:36 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Don't try to read a non-existent Exif:Title tag in wp_read_image_metadata(), as it's not a part of the Exif standard.

props tyxla.
fixes #31043.

File:
1 edited

Legend:

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

    r31099 r31462  
    339339        $exif = @exif_read_data( $file );
    340340
    341         if ( empty( $meta['title'] ) && ! empty( $exif['Title'] ) ) {
    342             $meta['title'] = trim( $exif['Title'] );
    343         }
    344 
    345341        if ( ! empty( $exif['ImageDescription'] ) ) {
    346342            mbstring_binary_safe_encoding();
Note: See TracChangeset for help on using the changeset viewer.