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:
parent
ba57072603
commit
fb5315dda3
|
@ -617,12 +617,7 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true
|
||||||
$class = ('unapproved' == $the_comment_status) ? 'unapproved' : '';
|
$class = ('unapproved' == $the_comment_status) ? 'unapproved' : '';
|
||||||
|
|
||||||
if ( current_user_can( 'edit_post', $post->ID ) ) {
|
if ( current_user_can( 'edit_post', $post->ID ) ) {
|
||||||
if ( 'attachment' == $post->post_type )
|
$post_link = "<a href='" . get_comment_link() . "'>";
|
||||||
$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 .= get_the_title($comment->comment_post_ID) . '</a>';
|
$post_link .= get_the_title($comment->comment_post_ID) . '</a>';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue