mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-09 23:24:34 +00:00
Media: Bring consistency to getimagesize() error suppression.
Props chasewg, joemcgill, jeremyfelt. Fixes #42480. git-svn-id: https://develop.svn.wordpress.org/trunk@42449 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -357,7 +357,7 @@ function wp_read_image_metadata( $file ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
list( , , $sourceImageType ) = getimagesize( $file );
|
||||
list( , , $sourceImageType ) = @getimagesize( $file );
|
||||
|
||||
/*
|
||||
* EXIF contains a bunch of data we'll probably never need formatted in ways
|
||||
@@ -386,10 +386,10 @@ function wp_read_image_metadata( $file ) {
|
||||
* as caption, description etc.
|
||||
*/
|
||||
if ( is_callable( 'iptcparse' ) ) {
|
||||
getimagesize( $file, $info );
|
||||
@getimagesize( $file, $info );
|
||||
|
||||
if ( ! empty( $info['APP13'] ) ) {
|
||||
$iptc = iptcparse( $info['APP13'] );
|
||||
$iptc = @iptcparse( $info['APP13'] );
|
||||
|
||||
// Headline, "A brief synopsis of the caption."
|
||||
if ( ! empty( $iptc['2#105'][0] ) ) {
|
||||
|
||||
Reference in New Issue
Block a user