Index: src/wp-admin/includes/dashboard.php =================================================================== --- src/wp-admin/includes/dashboard.php (revision 33998) +++ src/wp-admin/includes/dashboard.php (working copy) @@ -565,8 +565,6 @@ $comment_post_link = $comment_post_title; } - $comment_link = '#'; - $actions_string = ''; if ( current_user_can( 'edit_comment', $comment->comment_ID ) ) { // Pre-order it: Approve | Reply | Edit | Spam | Trash. @@ -575,7 +573,8 @@ 'reply' => '', 'edit' => '', 'spam' => '', - 'trash' => '', 'delete' => '' + 'trash' => '', 'delete' => '', + 'view' => '', ); $del_nonce = esc_html( '_wpnonce=' . wp_create_nonce( "delete-comment_$comment->comment_ID" ) ); @@ -596,6 +595,9 @@ $actions['delete'] = "" . __('Delete Permanently') . ''; else $actions['trash'] = "" . _x('Trash', 'verb') . ''; + if ( '1' === $comment->comment_approved ) { + $actions['view'] = '' . _x( 'View', 'verb' ) . ''; + } /** * Filter the action links displayed for each comment in the 'Recent Comments' @@ -634,7 +636,7 @@
' . get_comment_author_link() . '', $comment_post_link.' '.$comment_link, ' ' . __( '[Pending]' ) . '' ); ?> + '' . get_comment_author_link() . '', $comment_post_link, ' ' . __( '[Pending]' ) . '' ); ?>
$type", $comment_post_link." ".$comment_link ); ?>
+$type", $comment_post_link ); ?>