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
This commit is contained in:
Sergey Biryukov 2013-11-04 10:59:58 +00:00
parent acc8ac64b8
commit 6fa1c89458

View File

@ -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 );