diff --git a/wp-admin/includes/image.php b/wp-admin/includes/image.php index 1b5f2b1126..2553f68434 100644 --- a/wp-admin/includes/image.php +++ b/wp-admin/includes/image.php @@ -827,7 +827,13 @@ function wp_read_image_metadata( $file ) { return false; } - list( , , $image_type ) = wp_getimagesize( $file ); + $image_size = wp_getimagesize( $file ); + + if ( false === $image_size ) { + return false; + } + + list( , , $image_type ) = $image_size; /* * EXIF contains a bunch of data we'll probably never need formatted in ways diff --git a/wp-includes/version.php b/wp-includes/version.php index e430a91cce..10281f47a1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '7.0-alpha-61290'; +$wp_version = '7.0-alpha-61291'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.