[wp-trac] [WordPress Trac] #27222: get_uploaded_header_images() returns the incorrect image URL
WordPress Trac
noreply at wordpress.org
Wed Mar 5 22:04:40 UTC 2014
#27222: get_uploaded_header_images() returns the incorrect image URL
-------------------------------------------+------------------
Reporter: Kopepasah | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.9
Component: Appearance | Version: 3.2
Severity: normal | Resolution:
Keywords: has-patch dev-feedback commit | Focuses:
-------------------------------------------+------------------
Comment (by kovshenin):
I can't really think of anything that can go wrong with
[attachment:27222.patch] and it kinda makes sense.
A workaround could be changing the guid during attachment insert,
especially if the original file is not saved locally, in which case you'll
end up with a guid pointing to a file that does not exist, regardless of
what `wp_get_attachment_url()` or `get_uploaded_header_images()` return.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27222#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list