Link to post instead of post editor from edit-comments.php.

git-svn-id: http://svn.automattic.com/wordpress/trunk@7528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-03-26 19:35:42 +00:00
parent 1c0b403516
commit 07697db8d1

View File

@ -617,12 +617,7 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true
$class = ('unapproved' == $the_comment_status) ? 'unapproved' : '';
if ( current_user_can( 'edit_post', $post->ID ) ) {
if ( 'attachment' == $post->post_type )
$post_link = "<a href='upload.php?attachment_id=$post->ID'>";
elseif ( 'page' == $post->post_type )
$post_link = "<a href='edit-pages.php?page_id=$post->ID'>";
else
$post_link = "<a href='edit.php?p=$post->ID'>";
$post_link = "<a href='" . get_comment_link() . "'>";
$post_link .= get_the_title($comment->comment_post_ID) . '</a>';