Make WordPress Core


Ignore:
Timestamp:
02/24/2007 07:33:29 AM (17 years ago)
Author:
ryan
Message:

Comment feeds everywhere. Props mdawaffe and rob1n. fixes #2485

File:
1 edited

Legend:

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

    r4886 r4934  
    291291    }
    292292
    293     $comments = apply_filters( 'comments_array', $comments, $post->ID );
     293    // keep $comments for legacy's sake (remember $table*? ;) )
     294    $comments = $wp_query->comments = apply_filters( 'comments_array', $comments, $post->ID );
     295    $wp_query->comment_count = count($wp_query->comments);
    294296
    295297    define('COMMENTS_TEMPLATE', true);
Note: See TracChangeset for help on using the changeset viewer.