Skip to content

Commit d304b78

Browse files
committed
Coding Standards: Initialize $comments_count before loop in case not set during initial iteration.
Follow-up to [60643]. Props westonruter, mindctrl. See #56499. Fixes #64223. git-svn-id: https://develop.svn.wordpress.org/trunk@61192 602fd350-edb4-49c9-b593-d223f7449a82
1 parent e504c71 commit d304b78

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)