Make WordPress Core


Ignore:
Timestamp:
03/17/2006 01:16:22 AM (19 years ago)
Author:
ryan
Message:

Comment feed fixes from David House. fixes #2570

File:
1 edited

Legend:

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

    r3639 r3644  
    20162016function load_template($file) {
    20172017    global $posts, $post, $wp_did_header, $wp_did_template_redirect, $wp_query,
    2018         $wp_rewrite, $wpdb, $wp_version, $wp;
     2018        $wp_rewrite, $wpdb, $wp_version, $wp, $id, $comment;
    20192019
    20202020    extract($wp_query->query_vars);
     
    22212221
    22222222    $for_comments = false;
    2223     if ( is_single() || ($withcomments == 1) ) {
     2223    if ( is_single() || (get_query_var('withcomments') == 1) ) {
    22242224        $feed = 'rss2';
    22252225        $for_comments = true;   
     
    22392239
    22402240function do_feed_rss2($for_comments) {
    2241     if ( $for_comments )
     2241    if ( $for_comments ) {
    22422242        load_template(ABSPATH . 'wp-commentsrss2.php');
    2243     else
     2243    } else {
    22442244        load_template(ABSPATH . 'wp-rss2.php');
     2245    }
    22452246}
    22462247
Note: See TracChangeset for help on using the changeset viewer.