[wp-trac] [WordPress Trac] #48164: media_sideload_image should store original URL and optionally check for dupes
WordPress Trac
noreply at wordpress.org
Thu Feb 6 15:39:42 UTC 2020
#48164: media_sideload_image should store original URL and optionally check for
dupes
--------------------------------------+-----------------------
Reporter: dshanske | Owner: antpb
Type: enhancement | Status: assigned
Priority: low | Milestone: 5.4
Component: Media | Version:
Severity: trivial | Resolution:
Keywords: has-patch needs-dev-note | Focuses:
--------------------------------------+-----------------------
Changes (by antpb):
* keywords: has-patch => has-patch needs-dev-note
* owner: (none) => antpb
* status: new => assigned
Comment:
Hi @dshanske ! Thank you so much for submitting this patch. It was
discussed in the recent media meeting and I am going to work to get this
merged before the 5.4 beta. One thing I’ll make an adjustment on the
`media_sideload_image()` function to give some indication of the new meta
field being added. @joemcgill mentioned something like `Since 5.4, the
original URL of the attachment is stored in post meta` Feel free to do
this if you don’t see my patch here yet. I’ll likely get to this early
next week.
Here’s that function for handy reference:
https://developer.wordpress.org/reference/functions/media_sideload_image/
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48164#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list