[wp-trac] [WordPress Trac] #23306: WP_Image_Editor::make_image should call wp_mkdir_p

WordPress Trac noreply at wordpress.org
Tue Jan 29 00:03:26 UTC 2013


#23306: WP_Image_Editor::make_image should call wp_mkdir_p
------------------------------------------------------+------------------
 Reporter:  batmoo                                    |       Owner:
     Type:  defect (bug)                              |      Status:  new
 Priority:  normal                                    |   Milestone:  3.6
Component:  Media                                     |     Version:  3.5
 Severity:  normal                                    |  Resolution:
 Keywords:  has-patch dev-feedback reporter-feedback  |
------------------------------------------------------+------------------

Comment (by batmoo):

 > Also I'm missing why using that function

 WordPress core uses this function :) (Both {{{WP_Image_Editor_GD}}} and
 {{{WP_Image_Editor_Imagick}}} call the {{{make_image}}} method when a user
 is editing a file from Dashboard > Media > Edit).

 The issue is the similar to the one fixed in [20384]; certain replication
 plugins (like the one we use on WordPress.com) don't guarantee that a file
 (or directory, in this case) will be available in the local filesystem and
 this helps prevent issues because of that.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23306#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list