WordPress.org

Make WordPress Core

Changeset 42695


Ignore:
Timestamp:
02/11/2018 04:24:05 PM (4 years 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.

File:
1 edited

Legend:

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

    r42343 r42695  
    410410
    411411            if ( ! $fp ) {
     412                if ( $stream ) {
     413                    ob_end_clean();
     414                }
    412415                return false;
    413416            }
Note: See TracChangeset for help on using the changeset viewer.