Changeset 29737
- Timestamp:
- 09/11/2014 08:14:56 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r29729 r29737 320 320 321 321 // Use image exif/iptc data for title and caption defaults if possible. 322 } elseif ( $image_meta = @wp_read_image_metadata( $file ) ) {322 } elseif ( 0 === strpos( $type, 'image/' ) && $image_meta = @wp_read_image_metadata( $file ) ) { 323 323 if ( trim( $image_meta['title'] ) && ! is_numeric( sanitize_title( $image_meta['title'] ) ) ) 324 324 $title = $image_meta['title'];
Note: See TracChangeset
for help on using the changeset viewer.