mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 23:41:38 +01:00
Media: In WP_Image_Editor::make_image()
, close previously opened output buffer if the file could not be created.
Props dhanendran, gnif. Fixes #43255. Built from https://develop.svn.wordpress.org/trunk@42695 git-svn-id: http://core.svn.wordpress.org/trunk@42523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
beeafbc7ec
commit
e6322d0afe
@ -409,6 +409,9 @@ abstract class WP_Image_Editor {
|
|||||||
$fp = fopen( $filename, 'w' );
|
$fp = fopen( $filename, 'w' );
|
||||||
|
|
||||||
if ( ! $fp ) {
|
if ( ! $fp ) {
|
||||||
|
if ( $stream ) {
|
||||||
|
ob_end_clean();
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.0-alpha-42694';
|
$wp_version = '5.0-alpha-42695';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user