WordPress.org

Make WordPress Core

Ticket #23306: 23306.diff

File 23306.diff, 576 bytes (added by batmoo, 3 years ago)
  • wp-includes/class-wp-image-editor.php

     
    326326        protected function make_image( $filename, $function, $arguments ) { 
    327327                $dst_file = $filename; 
    328328 
     329                // The directory containing the original file may no longer exist when using a replication plugin. 
     330                wp_mkdir_p( dirname( $dst_file ) ); 
     331 
    329332                if ( $stream = wp_is_stream( $filename ) ) { 
    330333                        $filename = null; 
    331334                        ob_start();