From a5ee9b28039bceb7e677a6a5ea8a2e0117708dea Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 9 Dec 2008 17:44:04 +0000 Subject: [PATCH] Fixed undefined var notice when user can't edit the post git-svn-id: https://develop.svn.wordpress.org/trunk@10148 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/dashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index d8475a94b2..473cc8a450 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'] = "" . __( 'Approve' ) . ''; $actions['unapprove'] = "" . __( '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 = ' | ';