diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php
index 5de407f615..742561c184 100644
a
|
b
|
function wp_dashboard_recent_comments( $total_items = 5 ) { |
1058 | 1058 | $comments_query['status'] = 'approve'; |
1059 | 1059 | } |
1060 | 1060 | |
1061 | | while ( count( $comments ) < $total_items && $possible = get_comments( $comments_query ) ) { |
| 1061 | $comment_count = count( $comments ); |
| 1062 | while ( $comment_count < $total_items && $possible = get_comments( $comments_query ) ) { |
1062 | 1063 | if ( ! is_array( $possible ) ) { |
1063 | 1064 | break; |
1064 | 1065 | } |