1 | Index: wp-admin/edit-comments.php |
---|
2 | =================================================================== |
---|
3 | --- wp-admin/edit-comments.php (revision 2557) |
---|
4 | +++ wp-admin/edit-comments.php (working copy) |
---|
5 | @@ -136,6 +136,8 @@ |
---|
6 | foreach ($comments as $comment) { |
---|
7 | $authordata = get_userdata($wpdb->get_var("SELECT post_author FROM $wpdb->posts WHERE ID = $comment->comment_post_ID")); |
---|
8 | $class = ('alternate' == $class) ? '' : 'alternate'; |
---|
9 | + $comment_status = wp_get_comment_status($comment->comment_ID); |
---|
10 | + if ('unapproved' == $comment_status) $class .= ' unapproved'; |
---|
11 | ?> |
---|
12 | <tr class='<?php echo $class; ?>'> |
---|
13 | <td><?php if (user_can_delete_post_comments($user_ID, $comment->comment_post_ID) ) { ?><input type="checkbox" name="delete_comments[]" value="<?php echo $comment->comment_ID; ?>" /><?php } ?></td> |
---|
14 | @@ -168,4 +170,4 @@ |
---|
15 | |
---|
16 | </div> |
---|
17 | |
---|
18 | -<?php include('admin-footer.php'); ?> |
---|
19 | \ No newline at end of file |
---|
20 | +<?php include('admin-footer.php'); ?> |
---|