diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php
index d8475a94b..473cc8a45 100644
--- a/wp-admin/includes/dashboard.php
+++ b/wp-admin/includes/dashboard.php
@@ -464,6 +464,7 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
$actions = array();
+ $actions_string = '';
if ( current_user_can('edit_post', $comment->comment_post_ID) ) {
$actions['approve'] = "';
$actions['unapprove'] = "';
@@ -476,7 +477,6 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
$actions = apply_filters( 'comment_row_actions', $actions, $comment );
$i = 0;
- $actions_string = '';
foreach ( $actions as $action => $link ) {
++$i;
( ( ('approve' == $action || 'unapprove' == $action) && 2 === $i ) || 1 === $i ) ? $sep = '' : $sep = ' | ';