WordPress.org

Make WordPress Core

Changeset 38298


Ignore:
Timestamp:
08/21/2016 06:42:44 AM (3 years ago)
Author:
wonderboymusic
Message:

Comments: in WP_Comment_Query::fill_descendants(), continue if there is an empty array in the loop.

See #37416, [38297].

File:
1 edited

Legend:

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

    r38297 r38298  
    10141014        $descendant_ids = array();
    10151015        for ( $i = 1, $c = count( $levels ); $i <= $c; $i++ ) {
     1016            if ( empty( $levels[ $i ] ) ) {
     1017                continue;
     1018            }
    10161019            $descendant_ids = array_merge( $descendant_ids, $levels[ $i ] );
    10171020        }
Note: See TracChangeset for help on using the changeset viewer.