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-commentsrss2.php

    r722 r836  
    66/* These first lines are the first part of a WordPress template.
    77           In every template you do, you got to copy them before the CafeLog 'loop' */
    8 $blog=1; // enter your blog's ID
     8if (! $feed) {
     9    $blog=1; // enter your blog's ID
     10    require('wp-blog-header.php');
     11}
     12
    913header('Content-type: text/xml');
    10 require('wp-blog-header.php');
    1114
    1215if (!isset($rss_language)) { $rss_language = 'en'; }
     
    2730        $i++;
    2831?>
    29     <title><?php if (isset($_REQUEST["p"])) { echo "Comments on: "; the_title_rss(); } else { bloginfo_rss("name"); echo " Comments"; } ?></title>
    30     <link><?php isset($_REQUEST["p"]) ? permalink_single_rss() : bloginfo_rss("url") ?></link>
     32    <title><?php if (isset($_REQUEST["p"]) || isset($_REQUEST["name"])) { echo "Comments on: "; the_title_rss(); } else { bloginfo_rss("name"); echo " Comments"; } ?></title>
     33    <link><?php (isset($_REQUEST["p"]) || isset($_REQUEST["name"])) ? permalink_single_rss() : bloginfo_rss("url") ?></link>
    3134    <description><?php bloginfo_rss("description") ?></description>
    3235    <dc:language><?php echo $rss_language ?></dc:language>
     
    4144
    4245<?php
    43         if (isset($_REQUEST["p"])) {
     46        if (isset($_REQUEST["p"]) || isset($_REQUEST["name"])) {
    4447            $comments = $wpdb->get_results("SELECT comment_ID,
    4548                                                   comment_author,
Note: See TracChangeset for help on using the changeset viewer.