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. git-svn-id: https://develop.svn.wordpress.org/trunk@44631 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
950562452a
commit
a3fe5b75e1
@ -280,6 +280,7 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||
$current_user_id = get_current_user_id();
|
||||
$num_comments->mine = get_comments(
|
||||
array(
|
||||
'post_id' => $post_id ? $post_id : 0,
|
||||
'user_id' => $current_user_id,
|
||||
'count' => true,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user