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
This commit is contained in:
Sergey Biryukov
2026-03-06 23:20:46 +00:00
parent 3fd710b1fb
commit 219d7563ef
2 changed files with 3 additions and 2 deletions

View File

@@ -48,7 +48,8 @@ if ( isset( $_REQUEST['c'] ) ) {
);
}
} else {
$comment = null;
$comment_id = 0;
$comment = null;
}
switch ( $action ) {

View File

@@ -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.