WordPress.org

WordPress build repository browser

Changeset 42523


Ignore:
Timestamp:
02/11/18 16:25:31 (11 days ago)
Author:
SergeyBiryukov
Message:

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

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-image-editor.php

    r42172 r42523  
    410410 
    411411            if ( ! $fp ) { 
     412                if ( $stream ) { 
     413                    ob_end_clean(); 
     414                } 
    412415                return false; 
    413416            } 
  • trunk/wp-includes/version.php

    r42522 r42523  
    55 * @global string $wp_version 
    66 */ 
    7 $wp_version = '5.0-alpha-42694'; 
     7$wp_version = '5.0-alpha-42695'; 
    88 
    99/** 
Note: See TracChangeset for help on using the changeset viewer.