diff --git a/wp-admin/includes/image.php b/wp-admin/includes/image.php index d596db4dab..139d405070 100644 --- a/wp-admin/includes/image.php +++ b/wp-admin/includes/image.php @@ -194,7 +194,9 @@ function wp_generate_attachment_metadata( $attachment_id, $file ) { } // Remove the blob of binary data from the array. - unset( $metadata['image']['data'] ); + if ( $metadata ) { + unset( $metadata['image']['data'] ); + } /** * Filter the generated attachment meta data. diff --git a/wp-includes/version.php b/wp-includes/version.php index 86dc47d401..f88d96fff5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-beta3-35553'; +$wp_version = '4.4-beta3-35554'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.