Make WordPress Core

Changeset 44631


Ignore:
Timestamp:
01/17/2019 02:44:32 AM (6 years ago)
Author:
pento
Message:

Comments: Correct the "Mine" comment count when viewing comments for a particular post.

The count should only be comments made on that post by the current user, not all comments by them.

Props chetan200891, garrett-eclipse.
Fixes #46014.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-comments-list-table.php

    r44530 r44631  
    281281                $num_comments->mine = get_comments(
    282282                    array(
     283                        'post_id' => $post_id ? $post_id : 0,
    283284                        'user_id' => $current_user_id,
    284285                        'count'   => true,
Note: See TracChangeset for help on using the changeset viewer.