[wp-trac] [WordPress Trac] #18395: Non-URL GUIDs are stripped on post update
WordPress Trac
wp-trac at lists.automattic.com
Sat Aug 13 18:31:48 UTC 2011
#18395: Non-URL GUIDs are stripped on post update
--------------------------+-----------------------------
Reporter: alexkingorg | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Validation | Version: 3.2.1
Severity: normal | Keywords:
--------------------------+-----------------------------
The post guid is run through several filters before the post is saved. the
esc_url_raw() call will end up setting a GUID to an empty string if the
GUID does not begin with a known/accepted protocol.
If a plugin/etc. wants to use the GUID column to store an external ID for
an item brought in from another system (say a Flickr photo ID), then
updating a post that has the Flickr ID as its GUID through the WP admin
will end up setting the GUID for that post to ''.
This would need to be changed if the move was made to UUIDs for GUID
values as well. Related: #6492.
A very basic patch for this specific issue is attached, but a larger
discussion around how this should work is likely needed. Related: #18315
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18395>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list