[wp-trac] [WordPress Trac] #18353: consider $_SERVER['REDIRECT_URL'] in self_link()

WordPress Trac noreply at wordpress.org
Sat Mar 2 17:04:49 UTC 2013


#18353: consider $_SERVER['REDIRECT_URL'] in self_link()
-------------------------------+----------------------
 Reporter:  sivann             |       Owner:
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:
Component:  Feeds              |     Version:  2.5
 Severity:  normal             |  Resolution:  wontfix
 Keywords:  reporter-feedback  |
-------------------------------+----------------------
Changes (by SergeyBiryukov):

 * status:  new => closed
 * component:  General => Feeds
 * version:  3.2.1 => 2.5
 * milestone:  Awaiting Review =>
 * resolution:   => wontfix


Old description:

> When using feed redirections such as a qtranslate which differentiates
> feeds between example.com/el/feed and example.com/en/feed, when going to
> one of the above URLs, the feed incorrectly has the
> [...]example.com/feed"[...] href instead of the correct:
> <atom:link href="http://www.example.com/el/feed" rel="self"
> type="application/rss+xml" />
>
> A fix is to use $_SERVER['REDIRECT_URL'] if it exists instead of
> REQUEST_URI in feed.php, function self_link()

New description:

 When using feed redirections such as a qtranslate which differentiates
 feeds between example.com/el/feed and example.com/en/feed, when going to
 one of the above URLs, the feed incorrectly has the
 [...]example.com/feed"[...] href instead of the correct:
 `<atom:link href="http://www.example.com/el/feed" rel="self"
 type="application/rss+xml" />`

 A fix is to use `$_SERVER['REDIRECT_URL']` if it exists instead of
 `REQUEST_URI` in feed.php, function self_link()

--

Comment:

 [23521] made `self_link()` filterable.

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


More information about the wp-trac mailing list