From 8f1f203934fad95bf16e7d528b1e9f1c4f3395e1 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 25 Nov 2008 21:14:31 +0000 Subject: [PATCH] Use view link not edit link. see #8344 git-svn-id: https://develop.svn.wordpress.org/trunk@9880 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/template.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index d16276a0ce..25d03d12a5 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1924,11 +1924,9 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true, $the_comment_status = wp_get_comment_status($comment->comment_ID); if ( current_user_can( 'edit_post', $post->ID ) ) { - $post_href = get_edit_post_link($post->ID); - $post_link = ""; + $post_link = ""; $post_link .= get_the_title($comment->comment_post_ID) . ''; } else { - $post_href = ''; $post_link = get_the_title($comment->comment_post_ID); } @@ -1972,10 +1970,7 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true, case 'comment': echo ""; echo '
'; - if ( !empty($post_href) ) - printf(__('Submitted on %2$s at %3$s'), $post_href, get_comment_date(__('Y/m/d')), get_comment_date(__('g:ia'))); - else - printf(__('Submitted on %1$s at %2$s'), get_comment_date(__('Y/m/d')), get_comment_date(__('g:ia'))); + printf(__('Submitted on %2$s at %3$s'), get_permalink($post->ID), get_comment_date(__('Y/m/d')), get_comment_date(__('g:ia'))); echo '
'; comment_text(); ?>