Make WordPress Core

Changeset 18594


Ignore:
Timestamp:
08/24/2011 11:12:07 AM (13 years ago)
Author:
westi
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-comments-list-table.php

    r18041 r18594  
    306306
    307307        $comment = $a_comment;
    308         $the_comment_status = wp_get_comment_status( $comment->comment_ID );
     308        $the_comment_class = join( ' ', get_comment_class( wp_get_comment_status( $comment->comment_ID ) ) );
    309309
    310310        $post = get_post( $comment->comment_post_ID );
     
    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        echo "<tr id='comment-$comment->comment_ID' class='$the_comment_class'>";
    315315        echo $this->single_row_columns( $comment );
    316316        echo "</tr>";
Note: See TracChangeset for help on using the changeset viewer.