[wp-trac] [WordPress Trac] #4550: Category RSS feed function broken
with URL rewrites
WordPress Trac
wp-trac at lists.automattic.com
Wed Jun 27 11:55:36 GMT 2007
#4550: Category RSS feed function broken with URL rewrites
--------------------------+-------------------------------------------------
Reporter: gwagenknecht | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: General | Version: 2.2.1
Severity: major | Keywords:
--------------------------+-------------------------------------------------
If you have URL rewrite enable the {{{get_category_rss_link}}} function in
[source:trunk/wp-includes/feed.php feed.php] returns wrong feed URLs. It
forgets to add a slash between the category link and the feed suffix. For
example {{{/category/mycategoryname}}} becomes
{{{/category/mycategorynamefeed}}} which is wrong.
The fix is quite simple. In feed.php change [source:trunk/wp-
includes/feed.php at 5755#L137 line 137] from:
{{{
$link = $link . user_trailingslashit('feed', 'feed');
}}}
to:
{{{
$link = trailingslashit($link) . user_trailingslashit('feed', 'feed');
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/4550>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list