Changeset 1770

Show
Ignore:
Timestamp:
10/10/04 18:41:39 (4 years ago)
Author:
rboren
Message:

Use is_single(). Bug 350.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-commentsrss2.php

    r1599 r1770  
    1818        $i++; 
    1919?> 
    20     <title><?php if (isset($_REQUEST["p"]) || isset($_REQUEST["name"])) { echo "Comments on: "; the_title_rss(); } else { bloginfo_rss("name"); echo " Comments"; } ?></title> 
    21     <link><?php (isset($_REQUEST["p"]) || isset($_REQUEST["name"])) ? permalink_single_rss() : bloginfo_rss("url") ?></link> 
     20    <title><?php if (is_single()) { echo "Comments on: "; the_title_rss(); } else { bloginfo_rss("name"); echo " Comments"; } ?></title> 
     21    <link><?php (is_single()) ? permalink_single_rss() : bloginfo_rss("url") ?></link> 
    2222    <description><?php bloginfo_rss("description") ?></description> 
    2323    <pubDate><?php echo gmdate('r'); ?></pubDate> 
     
    2525 
    2626<?php  
    27        if (isset($_REQUEST["p"]) || isset($_REQUEST["name"])) { 
     27      if (is_single()) { 
    2828            $comments = $wpdb->get_results("SELECT comment_ID, comment_author, comment_author_email,  
    2929            comment_author_url, comment_date, comment_content, comment_post_ID,