Make WordPress Core


Ignore:
Timestamp:
09/24/2015 04:30:12 PM (8 years ago)
Author:
wonderboymusic
Message:

Comments: In comments_template(), set $wp_query->comments_by_type to empty array if not separating comments. The value becomes stale otherwise. Edge case.

Props jakub.tyrcha.
Fixes #14809.

File:
1 edited

Legend:

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

    r34454 r34503  
    12411241        $wp_query->comments_by_type = separate_comments($comments);
    12421242        $comments_by_type = &$wp_query->comments_by_type;
     1243    } else {
     1244        $wp_query->comments_by_type = array();
    12431245    }
    12441246
Note: See TracChangeset for help on using the changeset viewer.