mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Comments: Query used to fill comment descendants should reset 'offset' and 'number' params.
Descendant queries should not inherit the 'offset' and 'number' parameters of the parent query, or descendants will be missed. Previously: [38497]. See #37696. git-svn-id: https://develop.svn.wordpress.org/trunk@39274 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -996,6 +996,8 @@ class WP_Comment_Query {
|
||||
$parent_query_args['parent__in'] = $uncached_parent_ids;
|
||||
$parent_query_args['no_found_rows'] = true;
|
||||
$parent_query_args['hierarchical'] = false;
|
||||
$parent_query_args['offset'] = 0;
|
||||
$parent_query_args['number'] = 0;
|
||||
|
||||
$level_comments = get_comments( $parent_query_args );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user