From 219d7563ef7e5d76e46e02517bd81738cd53dc2e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 6 Mar 2026 23:20:46 +0000 Subject: [PATCH] Code Quality: Make sure `$comment_id` is defined in `wp-admin/comment.php`. This avoids a `variable.undefined` warning at PHPStan level 3. Follow-up to [48958]. Props huzaifaalmesbah, westonruter, SergeyBiryukov. See #64238. Built from https://develop.svn.wordpress.org/trunk@61859 git-svn-id: http://core.svn.wordpress.org/trunk@61146 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/comment.php | 3 ++- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-admin/comment.php b/wp-admin/comment.php index e1058695a3..b834f7b594 100644 --- a/wp-admin/comment.php +++ b/wp-admin/comment.php @@ -48,7 +48,8 @@ if ( isset( $_REQUEST['c'] ) ) { ); } } else { - $comment = null; + $comment_id = 0; + $comment = null; } switch ( $action ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 96e411406e..7af0939918 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '7.0-beta3-61858'; +$wp_version = '7.0-beta3-61859'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.