From 19a43125cd70c2314a4f531441651b62c7fad133 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 14 Feb 2015 09:14:28 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@31462 git-svn-id: http://core.svn.wordpress.org/trunk@31443 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/image.php | 4 ---- wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/wp-admin/includes/image.php b/wp-admin/includes/image.php index 7c12dd6ee1..25a49cef5b 100644 --- a/wp-admin/includes/image.php +++ b/wp-admin/includes/image.php @@ -338,10 +338,6 @@ function wp_read_image_metadata( $file ) { 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 ); - if ( empty( $meta['title'] ) && ! empty( $exif['Title'] ) ) { - $meta['title'] = trim( $exif['Title'] ); - } - if ( ! empty( $exif['ImageDescription'] ) ) { mbstring_binary_safe_encoding(); $description_length = strlen( $exif['ImageDescription'] ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 3228ee8310..98c0f9674d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31461'; +$wp_version = '4.2-alpha-31462'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.