Consistent use or disuse of trailing slashes in URLs according to user preference. props MathiasBynens. fixes #1485

git-svn-id: https://develop.svn.wordpress.org/trunk@4886 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith
2007-02-15 07:07:12 +00:00
parent d38a3f7777
commit 5164d38cb5
5 changed files with 35 additions and 14 deletions

View File

@@ -99,7 +99,7 @@ function comments_rss($commentsrssfilename = '') {
global $id;
if ( '' != get_option('permalink_structure') )
$url = trailingslashit( get_permalink() ) . 'feed/';
$url = trailingslashit( get_permalink() ) . user_trailingslashit('feed');
else
$url = get_option('home') . "/$commentsrssfilename?feed=rss2&p=$id";
@@ -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 . "feed/";
$link = $link . user_trailingslashit('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 . "feed/";
$link = $link . user_trailingslashit('feed/');
}
$link = apply_filters('category_feed_link', $link);