WordPress.org

Make WordPress Core

Changeset 23744


Ignore:
Timestamp:
03/18/13 18:05:23 (2 years ago)
Author:
ryan
Message:

Make WP_Image_Editor::make_image() safe for replication plugins by making sure the directory for the image being made exists.

Props batmoo
fixes #23306

File:
1 edited

Legend:

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

    r23103 r23744  
    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; 
Note: See TracChangeset for help on using the changeset viewer.