WordPress.org

Make WordPress Core

Ticket #4550: trailingslashit.diff

File trailingslashit.diff, 857 bytes (added by markjaquith, 11 years ago)

Patch for trunk

  • wp-includes/feed.php

     
    116116                $link = get_option('home') . '?feed=rss2&author=' . $author_id;
    117117        } else {
    118118                $link = get_author_posts_url($author_id, $author_nicename);
    119                 $link = $link . user_trailingslashit('feed', 'feed');
     119                $link = trailingslashit($link) . user_trailingslashit('feed', 'feed');
    120120        }
    121121
    122122        $link = apply_filters('author_feed_link', $link);
     
    134134                $link = get_option('home') . '?feed=rss2&cat=' . $cat_ID;
    135135        } else {
    136136                $link = get_category_link($cat_ID);
    137                 $link = $link . user_trailingslashit('feed', 'feed');
     137                $link = trailingslashit($link) . user_trailingslashit('feed', 'feed');
    138138        }
    139139
    140140        $link = apply_filters('category_feed_link', $link);