git-svn-id: https://develop.svn.wordpress.org/trunk@1454 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2004-07-06 18:14:42 +00:00
parent 1048b8353c
commit 3ec8ee1f14
3 changed files with 6 additions and 6 deletions

View File

@@ -120,9 +120,9 @@ if ('view' == $mode) {
</tr>';
foreach ($comments as $comment) {
$authordata = get_userdata($wpdb->get_var("SELECT post_author FROM $wpdb->posts WHERE ID = $comment->comment_post_ID"));
$bgcolor = ('#eee' == $bgcolor) ? 'none' : '#eee';
$class = ('alternate' == $class) ? '' : 'alternate';
?>
<tr style='background-color: <?php echo $bgcolor; ?>'>
<tr class='<?php echo $class; ?>'>
<td><?php if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) { ?><input type="checkbox" name="delete_comments[]" value="<?php echo $comment->comment_ID; ?>" /><?php } ?></td>
<td><?php comment_author_link() ?></td>
<td><?php comment_author_email_link() ?></td>