From abf27d78b9d8be9cb62a701477a185b6aa16deb9 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 11 Feb 2018 21:55:30 +0000 Subject: [PATCH] Media: After [42695], remove redundant check that is already performed a few lines above. Props gnif. See #43255. Built from https://develop.svn.wordpress.org/trunk@42702 git-svn-id: http://core.svn.wordpress.org/trunk@42530 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-image-editor.php | 4 +--- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/wp-includes/class-wp-image-editor.php b/wp-includes/class-wp-image-editor.php index 3d38cd1cbb..7eed74e08c 100644 --- a/wp-includes/class-wp-image-editor.php +++ b/wp-includes/class-wp-image-editor.php @@ -409,9 +409,7 @@ abstract class WP_Image_Editor { $fp = fopen( $filename, 'w' ); if ( ! $fp ) { - if ( $stream ) { - ob_end_clean(); - } + ob_end_clean(); return false; } diff --git a/wp-includes/version.php b/wp-includes/version.php index e937edfdae..13284144d9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-42701'; +$wp_version = '5.0-alpha-42702'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.