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.

Built from https://develop.svn.wordpress.org/trunk@61192


git-svn-id: http://core.svn.wordpress.org/trunk@60528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Weston Ruter
2025-11-10 20:39:36 +00:00
parent d0a76e02d6
commit b058f24638
2 changed files with 2 additions and 1 deletions

View File

@@ -1074,6 +1074,7 @@ function wp_dashboard_recent_comments( $total_items = 5 ) {
$comments_query['status'] = 'approve';
}
$comments_count = 0;
do {
$possible = get_comments( $comments_query );

View File

@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.9-beta4-61191';
$wp_version = '6.9-beta4-61192';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.