diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php index a2120a9e64..e8082bbb16 100644 --- a/wp-admin/includes/class-wp-comments-list-table.php +++ b/wp-admin/includes/class-wp-comments-list-table.php @@ -442,11 +442,11 @@ class WP_Comments_List_Table extends WP_List_Table { public function single_row( $comment ) { global $post; - $the_comment_class = wp_get_comment_status( $comment->comment_ID ); + $the_comment_class = wp_get_comment_status( $comment ); if ( ! $the_comment_class ) { $the_comment_class = ''; } - $the_comment_class = join( ' ', get_comment_class( $the_comment_class, $comment->comment_ID, $comment->comment_post_ID ) ); + $the_comment_class = join( ' ', get_comment_class( $the_comment_class, $comment, $comment->comment_post_ID ) ); $post = get_post( $comment->comment_post_ID ); @@ -479,7 +479,7 @@ class WP_Comments_List_Table extends WP_List_Table { return; } - $the_comment_status = wp_get_comment_status( $comment->comment_ID ); + $the_comment_status = wp_get_comment_status( $comment ); $out = ''; @@ -588,7 +588,7 @@ class WP_Comments_List_Table extends WP_List_Table { * @param object $comment */ public function column_comment( $comment ) { - $comment_url = esc_url( get_comment_link( $comment->comment_ID ) ); + $comment_url = esc_url( get_comment_link( $comment ) ); echo '
'; - comment_text( $comment->comment_ID ); + comment_text( $comment ); if ( $this->user_can ) { ?>