From 4dfdd2e9b2f48f7a5d5d5ed4285c2aede8c56352 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Wed, 24 Aug 2011 11:12:07 +0000 Subject: [PATCH] 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 --- wp-admin/includes/class-wp-comments-list-table.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php index fd25129b67..27380c82e1 100644 --- a/wp-admin/includes/class-wp-comments-list-table.php +++ b/wp-admin/includes/class-wp-comments-list-table.php @@ -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 ""; + echo ""; echo $this->single_row_columns( $comment ); echo ""; }