Skip to content

Commit abbd961

Browse files
committed
Initialize $comments_count variable in case not set during initial loop
1 parent 328ab83 commit abbd961

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/wp-admin/includes/dashboard.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,7 @@ function wp_dashboard_recent_comments( $total_items = 5 ) {
10741074
$comments_query['status'] = 'approve';
10751075
}
10761076

1077+
$comments_count = 0;
10771078
do {
10781079
$possible = get_comments( $comments_query );
10791080

0 commit comments

Comments
 (0)