From 6fa1c894583f67b528bf59ca62277bf35aadd3de Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 4 Nov 2013 10:59:58 +0000 Subject: [PATCH] Pass comment ID and comment post ID to get_comment_class() in WP_Comments_List_Table::single_row(). props drozdz. fixes #25814. git-svn-id: https://develop.svn.wordpress.org/trunk@26001 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-comments-list-table.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 345bda2f5b..7b5d55cbc4 100644 --- a/src/wp-admin/includes/class-wp-comments-list-table.php +++ b/src/wp-admin/includes/class-wp-comments-list-table.php @@ -311,7 +311,8 @@ class WP_Comments_List_Table extends WP_List_Table { global $post, $comment; $comment = $a_comment; - $the_comment_class = join( ' ', get_comment_class( wp_get_comment_status( $comment->comment_ID ) ) ); + $the_comment_class = wp_get_comment_status( $comment->comment_ID ); + $the_comment_class = join( ' ', get_comment_class( $the_comment_class, $comment->comment_ID, $comment->comment_post_ID ) ); $post = get_post( $comment->comment_post_ID );