Display comments in descending date order, consistently. props scribu. fixes #10674

git-svn-id: https://develop.svn.wordpress.org/trunk@11901 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2009-09-04 08:50:55 +00:00
parent 367fdfe7f3
commit 608115bd25
1 changed files with 2 additions and 2 deletions

View File

@ -2031,12 +2031,12 @@ function _wp_get_comment_list( $status = '', $s = false, $start, $num, $post = 0
if ( $post ) {
$total = '';
$post = " AND c.comment_post_ID = '$post'";
$orderby = "ORDER BY c.comment_date_gmt ASC LIMIT $start, $num";
} else {
$post = '';
$orderby = "ORDER BY c.comment_date_gmt DESC LIMIT $start, $num";
}
$orderby = "ORDER BY c.comment_date_gmt DESC LIMIT $start, $num";
if ( 'comment' == $type )
$typesql = "AND c.comment_type = ''";
elseif ( 'pings' == $type )