Changeset 45590 for trunk/src/wp-includes/class-wp-comment-query.php
- Timestamp:
- 07/02/2019 11:41:16 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-comment-query.php
r44573 r45590 430 430 $_comments = array(); 431 431 foreach ( $comment_ids as $comment_id ) { 432 if ( $_comment = get_comment( $comment_id ) ) { 432 $_comment = get_comment( $comment_id ); 433 if ( $_comment ) { 433 434 $_comments[] = $_comment; 434 435 } … … 951 952 do { 952 953 // Parent-child relationships may be cached. Only query for those that are not. 953 $child_ids = $uncached_parent_ids = array(); 954 $_parent_ids = $levels[ $level ]; 954 $child_ids = array(); 955 $uncached_parent_ids = array(); 956 $_parent_ids = $levels[ $level ]; 955 957 foreach ( $_parent_ids as $parent_id ) { 956 958 $cache_key = "get_comment_child_ids:$parent_id:$key:$last_changed"; … … 1010 1012 // If a threaded representation was requested, build the tree. 1011 1013 if ( 'threaded' === $this->query_vars['hierarchical'] ) { 1012 $threaded_comments = $ref = array(); 1014 $threaded_comments = array(); 1015 $ref = array(); 1013 1016 foreach ( $all_comments as $k => $c ) { 1014 1017 $_c = get_comment( $c->comment_ID );
Note: See TracChangeset
for help on using the changeset viewer.