From cd45adaa0b01e445b3e99ddd4eedf85a6f642456 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 4 Nov 2013 11:00:11 +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. Built from https://develop.svn.wordpress.org/trunk@26001 git-svn-id: http://core.svn.wordpress.org/trunk@25934 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-comments-list-table.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php index 345bda2f5b..7b5d55cbc4 100644 --- a/wp-admin/includes/class-wp-comments-list-table.php +++ b/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 );