Make WordPress Core


Ignore:
Timestamp:
02/15/2007 07:07:12 AM (18 years ago)
Author:
markjaquith
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/feed.php

    r4805 r4886  
    100100
    101101    if ( '' != get_option('permalink_structure') )
    102         $url = trailingslashit( get_permalink() ) . 'feed/';
     102        $url = trailingslashit( get_permalink() ) . user_trailingslashit('feed');
    103103    else
    104104        $url = get_option('home') . "/$commentsrssfilename?feed=rss2&p=$id";
     
    116116    } else {
    117117        $link = get_author_posts_url($author_id, $author_nicename);
    118         $link = $link . "feed/";
     118        $link = $link . user_trailingslashit('feed');
    119119    }
    120120
     
    134134    } else {
    135135        $link = get_category_link($cat_ID);
    136         $link = $link . "feed/";
     136        $link = $link . user_trailingslashit('feed/');
    137137    }
    138138
Note: See TracChangeset for help on using the changeset viewer.