mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-23 16:51:32 +01:00
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
This commit is contained in:
parent
6cf9ea65b4
commit
11c3cb07b9
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user