WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/17/2016 03:02:40 AM (5 years ago)
Author:
boonebgorges
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-comment-query.php

    r38849 r39274  
    997997                $parent_query_args['no_found_rows'] = true;
    998998                $parent_query_args['hierarchical']  = false;
     999                $parent_query_args['offset']        = 0;
     1000                $parent_query_args['number']        = 0;
    9991001
    10001002                $level_comments = get_comments( $parent_query_args );
Note: See TracChangeset for help on using the changeset viewer.