Make WordPress Core


Ignore:
Timestamp:
02/05/2004 08:55:50 PM (21 years ago)
Author:
rboren
Message:

Clean feed and trackback URLs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-functions-comment.php

    r805 r836  
    210210    global $id;
    211211    global $querystring_start, $querystring_equal, $querystring_separator, $siteurl;
    212     $url = $siteurl.'/'.$commentsrssfilename.$querystring_start.'p'.$querystring_equal.$id;
     212
     213    if ('' != get_settings('permalink_structure')) {
     214        $url = trailingslashit(get_permalink()) . 'rss2/';
     215    } else {
     216        $url = $siteurl.'/'.$commentsrssfilename.$querystring_start.'p'.$querystring_equal.$id;
     217    }
     218
    213219    $url = '<a href="'.$url.'">'.$link_text.'</a>';
    214220    echo $url;
     
    253259    global $siteurl, $id;
    254260    $tb_url = $siteurl.'/wp-trackback.php/'.$id;
     261
     262    if ('' != get_settings('permalink_structure')) {
     263        $tb_url = get_permalink() . 'trackback/';
     264    }
     265
    255266    if ($display) {
    256267        echo $tb_url;
Note: See TracChangeset for help on using the changeset viewer.