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. Built from https://develop.svn.wordpress.org/trunk@37873 git-svn-id: http://core.svn.wordpress.org/trunk@37814 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3d0141fe04
commit
bf2bea4987
|
@ -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.
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.6-alpha-37872';
|
||||
$wp_version = '4.6-alpha-37873';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue