[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
Sat Aug 15 15:30:54 UTC 2020


#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:  reviewing
 Priority:  normal        |   Milestone:  5.6
Component:  Media         |     Version:  trunk
 Severity:  minor         |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------

Comment (by jamesgol):

 I always assume that someone's going to do something wrong like try to
 pass in null or false as an argument.  So in my opinion it's safer to at
 least check.  One step further would be a check for is_array().

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


More information about the wp-trac mailing list