Include all comment css classes when outputing the rows in the Comments admin page to allow for easy customisation by plugins. Fixes #18447 props josephscott.

git-svn-id: https://develop.svn.wordpress.org/trunk@18594 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2011-08-24 11:12:07 +00:00
parent edec48d754
commit 4dfdd2e9b2
1 changed files with 2 additions and 2 deletions

View File

@ -305,13 +305,13 @@ class WP_Comments_List_Table extends WP_List_Table {
global $post, $comment, $the_comment_status;
$comment = $a_comment;
$the_comment_status = wp_get_comment_status( $comment->comment_ID );
$the_comment_class = join( ' ', get_comment_class( wp_get_comment_status( $comment->comment_ID ) ) );
$post = get_post( $comment->comment_post_ID );
$this->user_can = current_user_can( 'edit_comment', $comment->comment_ID );
echo "<tr id='comment-$comment->comment_ID' class='$the_comment_status'>";
echo "<tr id='comment-$comment->comment_ID' class='$the_comment_class'>";
echo $this->single_row_columns( $comment );
echo "</tr>";
}