Make WordPress Core

Ticket #46014: 46014.diff

File 46014.diff, 562 bytes (added by chetan200891, 6 years ago)

Created patch to pass $post_id as an arg to the get_comments call.

  • src/wp-admin/includes/class-wp-comments-list-table.php

    diff --git a/src/wp-admin/includes/class-wp-comments-list-table.php b/src/wp-admin/includes/class-wp-comments-list-table.php
    index 048e8c32c4..ea7c82ad70 100644
    a b class WP_Comments_List_Table extends WP_List_Table { 
    280280                                $current_user_id    = get_current_user_id();
    281281                                $num_comments->mine = get_comments(
    282282                                        array(
     283                                                'post_id' => $post_id,
    283284                                                'user_id' => $current_user_id,
    284285                                                'count'   => true,
    285286                                        )