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

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 8 11:16:15 UTC 2011


#18353: consider $_SERVER['REDIRECT_URL'] in self_link()
--------------------------+-----------------------------
 Reporter:  sivann        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.2.1
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 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()

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


More information about the wp-trac mailing list