diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 203d899e57..23fbd819af 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -606,13 +606,16 @@ 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 ( 'attachment' == $post->post_type ) - $post_link = ""; - elseif ( 'page' == $post->post_type ) - $post_link = ""; - else - $post_link = ""; + if ( current_user_can( 'edit_post', $post->ID ) ) { + if ( 'attachment' == $post->post_type ) + $post_link = ""; + elseif ( 'page' == $post->post_type ) + $post_link = ""; + else + $post_link = ""; + } $post_link .= get_the_title($comment->comment_post_ID) . ''; + $author_url = get_comment_author_url(); if ( 'http://' == $author_url ) $author_url = '';