diff --git a/wp-includes/class-wp-image-editor.php b/wp-includes/class-wp-image-editor.php index 85a4916117..62e1575a1d 100644 --- a/wp-includes/class-wp-image-editor.php +++ b/wp-includes/class-wp-image-editor.php @@ -406,8 +406,10 @@ abstract class WP_Image_Editor { $fp = fopen( $filename, 'w' ); - if ( ! $fp ) + if ( ! $fp ) { + ob_end_clean(); return false; + } fwrite( $fp, $contents ); fclose( $fp ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 81775ffaa9..cfb33a1036 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9.9-alpha-43648'; +$wp_version = '4.9.9-alpha-43649'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.