We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd301d0 commit cb13aa3Copy full SHA for cb13aa3
src/wp-admin/includes/image.php
@@ -827,7 +827,13 @@ function wp_read_image_metadata( $file ) {
827
return false;
828
}
829
830
- list( , , $image_type ) = wp_getimagesize( $file );
+ $image_size = wp_getimagesize( $file );
831
+
832
+ if ( false === $image_size ) {
833
+ return false;
834
+ }
835
836
+ list( , , $image_type ) = $image_size;
837
838
/*
839
* EXIF contains a bunch of data we'll probably never need formatted in ways
0 commit comments