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: http://svn.automattic.com/wordpress/trunk@18594 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0c0e2c180f
commit
6afa141b4e
|
@ -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>";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue