diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 23fbd819af..8a6ef3e251 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -606,6 +606,7 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true $authordata = get_userdata($post->post_author); $the_comment_status = wp_get_comment_status($comment->comment_ID); $class = ('unapproved' == $the_comment_status) ? 'unapproved' : ''; + if ( current_user_can( 'edit_post', $post->ID ) ) { if ( 'attachment' == $post->post_type ) $post_link = ""; @@ -613,15 +614,23 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true $post_link = ""; else $post_link = ""; - } - $post_link .= get_the_title($comment->comment_post_ID) . ''; + $post_link .= get_the_title($comment->comment_post_ID) . ''; + + $edit_link_start = ""; + $edit_link_end = ''; + } else { + $post_link = get_the_title($comment->comment_post_ID); + $edit_link_start = $edit_link_end =''; + } + $author_url = get_comment_author_url(); if ( 'http://' == $author_url ) $author_url = ''; $author_url_display = $author_url; if ( strlen($author_url_display) > 50 ) $author_url_display = substr($author_url_display, 0, 49) . '...'; + $ptime = date('G', strtotime( $comment->comment_date ) ); if ( ( abs(time() - $ptime) ) < 86400 ) $ptime = sprintf( __('%s ago'), human_time_diff( $ptime ) ); @@ -639,14 +648,16 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true