Comments: Remove the assignment of an undocumented $comment_count
property in WP_Comment_Query::get_comments()
, which appears to be accidentally introduced in [34544].
Props flixos90. Fixes #37187. git-svn-id: https://develop.svn.wordpress.org/trunk@37873 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9b536c37d4
commit
b28ca0f4b8
@ -410,8 +410,6 @@ class WP_Comment_Query {
|
||||
|
||||
$comment_ids = array_map( 'intval', $comment_ids );
|
||||
|
||||
$this->comment_count = count( $this->comments );
|
||||
|
||||
if ( $comment_ids && $this->query_vars['number'] && ! $this->query_vars['no_found_rows'] ) {
|
||||
/**
|
||||
* Filters the query used to retrieve found comment count.
|
||||
|
Loading…
Reference in New Issue
Block a user