[wp-trac] [WordPress Trac] #16777: media_sideload_image() doesn't upload in past "/year/month/" folders

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 3 18:49:39 UTC 2012


#16777: media_sideload_image() doesn't upload in past "/year/month/" folders
---------------------------------+---------------------
 Reporter:  Coolkevman           |       Owner:  nacin
     Type:  defect (bug)         |      Status:  closed
 Priority:  normal               |   Milestone:  3.5
Component:  Upload               |     Version:  3.1
 Severity:  normal               |  Resolution:  fixed
 Keywords:  has-patch 3.5-early  |
---------------------------------+---------------------
Changes (by nacin):

 * owner:   => nacin
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [22105]:
 {{{
 #!CommitTicketReference repository="" revision="22105"
 Pass the post date to wp_upload_dir() during sideloads, just as we do
 uploads. Ensures that sideloaded images make it into the right uploads
 directory.

 props solarisssmoke, fixes #16777.
 }}}

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


More information about the wp-trac mailing list