WordPress.org

Make WordPress Core

Ticket #4353: 4353-trunk.diff

File 4353-trunk.diff, 2.5 KB (added by markjaquith, 7 years ago)
  • wp-admin/edit-comments.php

     
    137137  <tr id="comment-<?php echo $comment->comment_ID; ?>" class='<?php echo $class; ?>'> 
    138138    <td style="text-align: center"><?php if ( current_user_can('edit_post', $comment->comment_post_ID) ) { ?><input type="checkbox" name="delete_comments[]" value="<?php echo $comment->comment_ID; ?>" /><?php } ?></td> 
    139139    <td class="comment-author"><?php comment_author_link() ?></td> 
    140     <td><?php comment_author_email_link() ?></td> 
    141     <td><a href="edit-comments.php?s=<?php comment_author_IP() ?>&amp;mode=edit"><?php comment_author_IP() ?></a></td> 
     140    <td><?php if ( current_user_can('edit_post', $comment->comment_post_ID) ) { comment_author_email_link(); } ?></td> 
     141    <td><?php if ( current_user_can('edit_post', $comment->comment_post_ID) ) { ?><a href="edit-comments.php?s=<?php comment_author_IP() ?>&amp;mode=edit"><?php comment_author_IP() ?></a><?php } ?></td> 
    142142    <td><?php comment_excerpt(); ?></td> 
    143143    <td> 
    144144        <?php if ('unapproved' == $comment_status) { 
  • wp-admin/includes/template.php

     
    423423                $class .= ' alternate'; 
    424424        echo "<li id='comment-$id' class='$class'>"; 
    425425?> 
    426 <p><strong class="comment-author"><?php comment_author(); ?></strong> <?php if ($comment->comment_author_email) { ?>| <?php comment_author_email_link() ?> <?php } if ($comment->comment_author_url && 'http://' != $comment->comment_author_url) { ?> | <?php comment_author_url_link() ?> <?php } ?>| <?php _e('IP:') ?> <a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput=<?php comment_author_IP() ?>"><?php comment_author_IP() ?></a></p> 
     426<p><strong class="comment-author"><?php comment_author(); ?></strong> <?php if ( current_user_can('edit_post', $comment->comment_post_ID) && $comment->comment_author_email) { ?>| <?php comment_author_email_link() ?> <?php } if ($comment->comment_author_url && 'http://' != $comment->comment_author_url) { ?> | <?php comment_author_url_link() ?> <?php } if ( current_user_can('edit_post', $comment->comment_post_ID) ) { ?> | <?php _e('IP:') ?> <a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput=<?php comment_author_IP() ?>"><?php comment_author_IP() ?></a><?php } ?></p> 
    427427 
    428428<?php comment_text() ?> 
    429429