Ticket #52826: 52826.5.diff
| File 52826.5.diff, 1.4 KB (added by , 5 years ago) |
|---|
-
src/wp-admin/includes/image.php
711 711 ); 712 712 713 713 $iptc = array(); 714 $info = array();715 714 /* 716 715 * Read IPTC first, since it might contain data not available in exif such 717 716 * as caption, description etc. -
src/wp-includes/media.php
4987 4987 // Return without silencing errors when in debug mode. 4988 4988 defined( 'WP_DEBUG' ) && WP_DEBUG 4989 4989 ) { 4990 return getimagesize( $filename, $image_info ); 4990 if ( 2 === func_num_args() ) { 4991 return getimagesize( $filename, $image_info ); 4992 } else { 4993 return getimagesize( $filename ); 4994 } 4991 4995 } 4992 4996 4993 4997 /* … … 4998 5002 * even when it's able to provide image size information. 4999 5003 * 5000 5004 * See https://core.trac.wordpress.org/ticket/42480 5001 *5002 * phpcs:ignore WordPress.PHP.NoSilencedErrors5003 5005 */ 5004 return @getimagesize( $filename, $image_info ); 5006 if ( 2 === func_num_args() ) { 5007 // phpcs:ignore WordPress.PHP.NoSilencedErrors 5008 return @getimagesize( $filename, $image_info ); 5009 } else { 5010 // phpcs:ignore WordPress.PHP.NoSilencedErrors 5011 return @getimagesize( $filename ); 5012 } 5005 5013 }