[wp-trac] [WordPress Trac] #10434: New filter request in feed.php

WordPress Trac noreply at wordpress.org
Thu Nov 29 02:51:04 UTC 2012


#10434: New filter request in feed.php
-----------------------------------------+------------------------------
 Reporter:  mogman1                      |       Owner:
     Type:  enhancement                  |      Status:  reopened
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Plugins                      |     Version:  trunk
 Severity:  normal                       |  Resolution:
 Keywords:  RSS filter, feeds has-patch  |
-----------------------------------------+------------------------------
Changes (by josephscott):

 * status:  closed => reopened
 * cc: josephscott (added)
 * version:   => trunk
 * milestone:   => Awaiting Review
 * keywords:  RSS, filter, feeds => RSS filter, feeds has-patch
 * resolution:  worksforme =>


Comment:

 The self_link() function is used in feed-atom.php, feed-rss2-comments.php,
 feed-rss2.php for the self item in the feed.  What I'm seeing with the
 PuSHPress plugin (for PubSubHubbub) is that the inclusion of {{{
 $_SERVER['REQUEST_URI'] }}} is triggering some odd looking self URLs in
 some cases.  I've seen URLs for do_wp_cron, /wp-admin/, etc.  Those are
 clearly not the self reference link for the feed.

 Adding a filter would allow the PuSHPress plugin to ensure that the self
 link is set to the correct feed URL.  I'm including a simple patch that
 applies a 'self_link' filter to the value, then escapes it, then outputs
 the value.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10434#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list