#50971 closed defect (bug) (duplicate)
media_handle_sideload() does not allow $post_data to override the post_date that gets used by wp_upload_dir
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | minor | Version: | 5.6 |
| Component: | Media | Keywords: | |
| Focuses: | Cc: |
Description
Now that $post_id is an optional attribute to media_handle_sideload() it should be possible to override the $time passed to wp_handle_sideload() via the optional $post_data array.
My use case is calling media_handle_sideload() via a custom plugin, only after the existing library is checked for duplicates is the post actually created so there is no $post_id to reference (yet).
Change History (3)
Note: See
TracTickets for help on using
tickets.
Duplicate of #50972.