user_trailingslashit filter for users who sometimes want trailing slashes only on certain URL types. fixes #3899

git-svn-id: https://develop.svn.wordpress.org/trunk@5019 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith
2007-03-10 06:18:43 +00:00
parent b2105a943e
commit e2f9950018
5 changed files with 26 additions and 19 deletions
+2 -2
View File
@@ -113,7 +113,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');
$link = $link . user_trailingslashit('feed', 'feed');
}
$link = apply_filters('author_feed_link', $link);
@@ -131,7 +131,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/');
$link = $link . user_trailingslashit('feed', 'feed');
}
$link = apply_filters('category_feed_link', $link);