WordPress.org

Make WordPress Core

Changeset 37873


Ignore:
Timestamp:
06/26/2016 02:27:49 PM (3 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

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

    r37625 r37873  
    411411        $comment_ids = array_map( 'intval', $comment_ids );
    412412
    413         $this->comment_count = count( $this->comments );
    414 
    415413        if ( $comment_ids && $this->query_vars['number'] && ! $this->query_vars['no_found_rows'] ) {
    416414            /**
Note: See TracChangeset for help on using the changeset viewer.