From b058f24638bcd65ede4c6469df7b3be5b226ab17 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Mon, 10 Nov 2025 20:39:36 +0000 Subject: [PATCH] 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 --- wp-admin/includes/dashboard.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 6bb2599439..cac03b1fe3 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -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 ); diff --git a/wp-includes/version.php b/wp-includes/version.php index f05c3e5d36..675ea871ab 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.