Ensure that order is specified when querying for comment descendants.
Props tellyworth. Fixes #34838. Built from https://develop.svn.wordpress.org/trunk@35757 git-svn-id: http://core.svn.wordpress.org/trunk@35721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fc349932c0
commit
939291df9f
|
@ -883,7 +883,7 @@ class WP_Comment_Query {
|
|||
}
|
||||
|
||||
$where = 'WHERE ' . implode( ' AND ', $where_clauses ) . ' AND comment_parent IN (' . implode( ',', array_map( 'intval', $parent_ids ) ) . ')';
|
||||
$comment_ids = $wpdb->get_col( "{$this->sql_clauses['select']} {$this->sql_clauses['from']} {$where} {$this->sql_clauses['groupby']}" );
|
||||
$comment_ids = $wpdb->get_col( "{$this->sql_clauses['select']} {$this->sql_clauses['from']} {$where} {$this->sql_clauses['groupby']} ORDER BY comment_date_gmt ASC, comment_ID ASC" );
|
||||
|
||||
$level++;
|
||||
$levels[ $level ] = $comment_ids;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-RC1-35756';
|
||||
$wp_version = '4.4-RC1-35757';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue