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

git-svn-id: http://svn.automattic.com/wordpress/trunk@18868 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-10-03 14:03:01 +00:00
parent bbafdfa0e5
commit 401c841c93

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;