[wp-trac] [WordPress Trac] #50972: media_handle_sideload() does not allow $post_data to override the post_date that gets used by wp_upload_dir

WordPress Trac noreply at wordpress.org
Mon Feb 8 23:21:11 UTC 2021


#50972: media_handle_sideload() does not allow $post_data to override the post_date
that gets used by wp_upload_dir
------------------------------+-----------------------------
 Reporter:  jamesgol          |       Owner:  SergeyBiryukov
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  5.7
Component:  Media             |     Version:  5.3
 Severity:  minor             |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+-----------------------------
Changes (by antpb):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"50258" 50258]:
 {{{
 #!CommitTicketReference repository="" revision="50258"
 Media: Allow `post_date` to be respected in `media_handle_sideload()`.

 Previously, date information was unable to be changed when using
 `media_handle_sideload()`.

 Now you can override the date for a media item using
 `$post_data['post_date']` before using the function.

 Props jamesgol, mukesh27, SergeyBiryukov, hellofromTonya, Mista-Flo.
 Fixes #50972.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50972#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list