Changeset 42449 for trunk/src/wp-admin/includes/media.php
- Timestamp:
- 01/15/2018 07:43:30 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/media.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r42343 r42449 369 369 } 370 370 371 // Use image exif/iptc data for title and caption defaults if possible.372 } elseif ( 0 === strpos( $type, 'image/' ) && $image_meta = @wp_read_image_metadata( $file ) ) {371 // Use image exif/iptc data for title and caption defaults if possible. 372 } elseif ( 0 === strpos( $type, 'image/' ) && $image_meta = wp_read_image_metadata( $file ) ) { 373 373 if ( trim( $image_meta['title'] ) && ! is_numeric( sanitize_title( $image_meta['title'] ) ) ) { 374 374 $title = $image_meta['title']; … … 438 438 439 439 // Use image exif/iptc data for title and caption defaults if possible. 440 if ( $image_meta = @wp_read_image_metadata( $file ) ) {440 if ( $image_meta = wp_read_image_metadata( $file ) ) { 441 441 if ( trim( $image_meta['title'] ) && ! is_numeric( sanitize_title( $image_meta['title'] ) ) ) { 442 442 $title = $image_meta['title'];
Note: See TracChangeset
for help on using the changeset viewer.