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. git-svn-id: https://develop.svn.wordpress.org/trunk@34503 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
057ba76b2c
commit
ba2842f326
@ -1240,6 +1240,8 @@ function comments_template( $file = '/comments.php', $separate_comments = false
|
||||
if ( $separate_comments ) {
|
||||
$wp_query->comments_by_type = separate_comments($comments);
|
||||
$comments_by_type = &$wp_query->comments_by_type;
|
||||
} else {
|
||||
$wp_query->comments_by_type = array();
|
||||
}
|
||||
|
||||
$overridden_cpage = false;
|
||||
|
Loading…
Reference in New Issue
Block a user