~canonical-sysadmins/wordpress/5.0

« back to all changes in this revision

Viewing changes to wp-includes/class-wp-image-editor.php

  • Committer: Barry Price
  • Date: 2018-12-12 05:08:33 UTC
  • mfrom: (1.2.8 upstream)
  • Revision ID: barry.price@canonical.com-20181212050833-y090hmrbmlxy37aa
Merge WP5.0 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
406
406
 
407
407
                        $fp = fopen( $filename, 'w' );
408
408
 
409
 
                        if ( ! $fp )
 
409
                        if ( ! $fp ) {
 
410
                                ob_end_clean();
410
411
                                return false;
 
412
                        }
411
413
 
412
414
                        fwrite( $fp, $contents );
413
415
                        fclose( $fp );