[wp-trac] [WordPress Trac] #31080: GUID should not always be escaped for url in feeds

WordPress Trac noreply at wordpress.org
Mon Mar 9 19:41:00 UTC 2015


#31080: GUID should not always be escaped for url in feeds
-------------------------------------+--------------------------
 Reporter:  CheeseDurger             |       Owner:  stevenkword
     Type:  defect (bug)             |      Status:  assigned
 Priority:  normal                   |   Milestone:  4.2
Component:  Feeds                    |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  2nd-opinion needs-patch  |     Focuses:  template
-------------------------------------+--------------------------
Changes (by stevenkword):

 * keywords:  2nd-opinion has-patch => 2nd-opinion needs-patch


Comment:

 Replying to [comment:11 helen]:
 > In lieu of changing this outright for everybody, and the potential
 consequences that lie within, what if we switch to hooking `esc_url()` in?
 This would allow for those who want to use the GUID for something other
 than a URL to unhook and hook in something more appropriate like
 `esc_html()`.

 @Helen, I like this approach.  I'll submit a patch.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31080#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list