Use 'View Post' instead of '#' for view post links in comment rows. Props SergeyBiryukov. fixes #18846

git-svn-id: https://develop.svn.wordpress.org/trunk@18868 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2011-10-03 14:03:01 +00:00
parent 98554b4bb6
commit 7dd1ec898b

View File

@ -497,7 +497,8 @@ class WP_Comments_List_Table extends WP_List_Table {
echo $post_link . '<br />';
$this->comments_bubble( $post->ID, $pending_comments );
echo '</span> ';
echo "<a href='" . get_permalink( $post->ID ) . "'>#</a>";
$post_type_object = get_post_type_object( $post->post_type );
echo "<a href='" . get_permalink( $post->ID ) . "'>" . $post_type_object->labels->view_item . '</a>';
echo '</div>';
if ( 'attachment' == $post->post_type && ( $thumb = wp_get_attachment_image( $post->ID, array( 80, 60 ), true ) ) )
echo $thumb;