WordPress.org

Make WordPress Core

Changeset 38639


Ignore:
Timestamp:
09/21/2016 05:37:02 PM (4 years ago)
Author:
ocean90
Message:

Comments: Revert [38298].

Instead use the correct comparison operator which was changed in [38297].

Fixes #37416.

File:
1 edited

Legend:

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

    r38446 r38639  
    10211021        // Prime comment caches for non-top-level comments.
    10221022        $descendant_ids = array();
    1023         for ( $i = 1, $c = count( $levels ); $i <= $c; $i++ ) {
    1024             if ( empty( $levels[ $i ] ) ) {
    1025                 continue;
    1026             }
     1023        for ( $i = 1, $c = count( $levels ); $i < $c; $i++ ) {
    10271024            $descendant_ids = array_merge( $descendant_ids, $levels[ $i ] );
    10281025        }
Note: See TracChangeset for help on using the changeset viewer.