From 11c3cb07b9d4a3119f89b0ade3ef4766d67fdaef Mon Sep 17 00:00:00 2001 From: markjaquith Date: Fri, 4 Sep 2009 08:50:55 +0000 Subject: [PATCH] Display comments in descending date order, consistently. props scribu. fixes #10674 git-svn-id: http://svn.automattic.com/wordpress/trunk@11901 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 5e7e022dc9..e3db22a302 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -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 )