Changeset 42450
- Timestamp:
- 01/15/2018 08:01:51 PM (7 years ago)
- Location:
- branches/4.9
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-admin/includes/image.php
r41215 r42450 344 344 return false; 345 345 346 list( , , $sourceImageType ) = getimagesize( $file );346 list( , , $sourceImageType ) = @getimagesize( $file ); 347 347 348 348 /* … … 373 373 */ 374 374 if ( is_callable( 'iptcparse' ) ) { 375 getimagesize( $file, $info );375 @getimagesize( $file, $info ); 376 376 377 377 if ( ! empty( $info['APP13'] ) ) { 378 $iptc = iptcparse( $info['APP13'] );378 $iptc = @iptcparse( $info['APP13'] ); 379 379 380 380 // Headline, "A brief synopsis of the caption." -
branches/4.9/src/wp-admin/includes/media.php
r41964 r42450 356 356 357 357 // Use image exif/iptc data for title and caption defaults if possible. 358 } elseif ( 0 === strpos( $type, 'image/' ) && $image_meta = @wp_read_image_metadata( $file ) ) {358 } elseif ( 0 === strpos( $type, 'image/' ) && $image_meta = wp_read_image_metadata( $file ) ) { 359 359 if ( trim( $image_meta['title'] ) && ! is_numeric( sanitize_title( $image_meta['title'] ) ) ) { 360 360 $title = $image_meta['title']; … … 420 420 421 421 // Use image exif/iptc data for title and caption defaults if possible. 422 if ( $image_meta = @wp_read_image_metadata($file) ) {422 if ( $image_meta = wp_read_image_metadata( $file ) ) { 423 423 if ( trim( $image_meta['title'] ) && ! is_numeric( sanitize_title( $image_meta['title'] ) ) ) 424 424 $title = $image_meta['title']; -
branches/4.9/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r41727 r42450 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.