fix links generated by get_category_rss_link(). props gwagenknecht. fixes #4550 for trunk

git-svn-id: http://svn.automattic.com/wordpress/trunk@6100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2007-09-12 22:24:28 +00:00
parent 791aec14b2
commit ec6416ec0b

View File

@ -115,7 +115,7 @@ function get_author_rss_link($echo = false, $author_id, $author_nicename) {
$link = get_option('home') . '?feed=rss2&author=' . $author_id;
} else {
$link = get_author_posts_url($author_id, $author_nicename);
$link = $link . user_trailingslashit('feed', 'feed');
$link = trailingslashit($link) . user_trailingslashit('feed', 'feed');
}
$link = apply_filters('author_feed_link', $link);
@ -133,7 +133,7 @@ function get_category_rss_link($echo = false, $cat_ID, $category_nicename) {
$link = get_option('home') . '?feed=rss2&cat=' . $cat_ID;
} else {
$link = get_category_link($cat_ID);
$link = $link . user_trailingslashit('feed', 'feed');
$link = trailingslashit($link) . user_trailingslashit('feed', 'feed');
}
$link = apply_filters('category_feed_link', $link);