Changeset 42449
- Timestamp:
- 01/15/2018 07:43:30 PM (7 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/image.php
r42407 r42449 358 358 } 359 359 360 list( , , $sourceImageType ) = getimagesize( $file );360 list( , , $sourceImageType ) = @getimagesize( $file ); 361 361 362 362 /* … … 387 387 */ 388 388 if ( is_callable( 'iptcparse' ) ) { 389 getimagesize( $file, $info );389 @getimagesize( $file, $info ); 390 390 391 391 if ( ! empty( $info['APP13'] ) ) { 392 $iptc = iptcparse( $info['APP13'] );392 $iptc = @iptcparse( $info['APP13'] ); 393 393 394 394 // Headline, "A brief synopsis of the caption." -
trunk/src/wp-admin/includes/media.php
r42343 r42449 369 369 } 370 370 371 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']; -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r42343 r42449 124 124 125 125 // use image exif/iptc data for title and caption defaults if possible 126 $image_meta = @wp_read_image_metadata( $file );126 $image_meta = wp_read_image_metadata( $file ); 127 127 128 128 if ( ! empty( $image_meta ) ) {
Note: See TracChangeset
for help on using the changeset viewer.