Make WordPress Core

Changeset 2462


Ignore:
Timestamp:
03/22/2005 12:13:48 AM (21 years ago)
Author:
ryan
Message:

Show the latest 10 comments in the comment feed rather than only the first 10. http://mosquito.wordpress.org/view.php?id=958 Props: ringmaster

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-commentsrss2.php

    r2272 r2462  
    3636            AND $wpdb->comments.comment_approved = '1' AND ($wpdb->posts.post_status = 'publish' OR $wpdb->posts.post_status = 'page')
    3737            AND post_date < '".date("Y-m-d H:i:59")."'
    38             ORDER BY comment_date LIMIT " . get_settings('posts_per_rss') );
     38            ORDER BY comment_date DESC LIMIT " . get_settings('posts_per_rss') );
    3939        } else { // if no post id passed in, we'll just ue the last 10 comments.
    4040            $comments = $wpdb->get_results("SELECT comment_ID, comment_author, comment_author_email,
Note: See TracChangeset for help on using the changeset viewer.