[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 20:49:01 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: reviewing
Priority: normal | Milestone: 5.7
Component: Media | Version: 5.3
Severity: minor | Resolution:
Keywords: has-patch | Focuses:
--------------------------+-----------------------------
Comment (by hellofromTonya):
Patch 50972.2.diff includes the following changes:
- Fixes a typo in the `isset` keyname
- Uses the same year check strategy as with post, i.e. for consistency
- Optimizes setting the time by doing the `get_post` if no `post_date` is
passed in the post data
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50972#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list