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:
Sergey Biryukov 2016-06-26 14:28:28 +00:00
parent 3d0141fe04
commit bf2bea4987
2 changed files with 1 additions and 3 deletions

View File

@ -410,8 +410,6 @@ class WP_Comment_Query {
$comment_ids = array_map( 'intval', $comment_ids ); $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'] ) { if ( $comment_ids && $this->query_vars['number'] && ! $this->query_vars['no_found_rows'] ) {
/** /**
* Filters the query used to retrieve found comment count. * Filters the query used to retrieve found comment count.

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.