Make WordPress Core

Ticket #18447: comment-table.diff

File comment-table.diff, 779 bytes (added by josephscott, 13 years ago)
  • wp-admin/includes/class-wp-comments-list-table.php

     
    311311
    312312                $this->user_can = current_user_can( 'edit_comment', $comment->comment_ID );
    313313
    314                 echo "<tr id='comment-$comment->comment_ID' class='$the_comment_status'>";
     314                $data_commenttype = 'comment';
     315                if ( !empty( $comment->comment_type ) ) {
     316                        $data_commenttype = esc_html( $comment->comment_type );
     317                }
     318
     319                echo "<tr id='comment-$comment->comment_ID' class='$the_comment_status' data-commenttype='$data_commenttype'>";
    315320                echo $this->single_row_columns( $comment );
    316321                echo "</tr>";
    317322        }