Ticket #4550: trailingslashit.diff
| File trailingslashit.diff, 857 bytes (added by markjaquith, 6 years ago) |
|---|
-
wp-includes/feed.php
116 116 $link = get_option('home') . '?feed=rss2&author=' . $author_id; 117 117 } else { 118 118 $link = get_author_posts_url($author_id, $author_nicename); 119 $link = $link. user_trailingslashit('feed', 'feed');119 $link = trailingslashit($link) . user_trailingslashit('feed', 'feed'); 120 120 } 121 121 122 122 $link = apply_filters('author_feed_link', $link); … … 134 134 $link = get_option('home') . '?feed=rss2&cat=' . $cat_ID; 135 135 } else { 136 136 $link = get_category_link($cat_ID); 137 $link = $link. user_trailingslashit('feed', 'feed');137 $link = trailingslashit($link) . user_trailingslashit('feed', 'feed'); 138 138 } 139 139 140 140 $link = apply_filters('category_feed_link', $link);