[wp-trac] [WordPress Trac] #31080: GUID should not always be escaped for url in feeds
WordPress Trac
noreply at wordpress.org
Tue Jan 20 21:08:54 UTC 2015
#31080: GUID should not always be escaped for url in feeds
--------------------------+-----------------------------
Reporter: CheeseDurger | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Feeds | Version: trunk
Severity: normal | Keywords:
Focuses: template |
--------------------------+-----------------------------
Hello,
On the /wp-includes/feed-rss2.php template, it validates the GUID as a url
before outputting it (through the_guid() which calls esc_url()). So far so
good because in Wordpress, GUID are urls by default.
However, it should not always be the case.
Example : a website migrating from another CMS to Wordpress. Some people
are already subscribed to the feed in the other CMS and are reading it
through some feed reader. The GUIDs in the other CMS are phrases with
spaces. Then migrating the website, Wordpress will strip the spaces from
the GUIDs, the feed readers will interpret those items as new items, the
people will see duplicate items.
This bug might also be hidden in other feed templates.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31080>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list