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

WordPress Trac noreply at wordpress.org
Mon Mar 9 23:35:48 UTC 2015


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

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


Comment:

 Patch 31080.2.diff adds the filter `the_guid` to allow for plugins to
 modify the escaping method when displaying in feeds.

 Usage example:

 {{{
 remove_filter( 'the_guid', 'esc_url' );

 function html_escape_the_guid( $guid ) {
         return esc_html( get_the_guid () );
 }
 add_filter( 'the_guid', 'html_escape_the_guid' );
 }}}

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


More information about the wp-trac mailing list