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

git-svn-id: https://develop.svn.wordpress.org/trunk@7528 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-03-26 19:35:42 +00:00
parent ba57072603
commit fb5315dda3
1 changed files with 1 additions and 6 deletions

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>';