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:
@@ -48,7 +48,8 @@ if ( isset( $_REQUEST['c'] ) ) {
|
||||
);
|
||||
}
|
||||
} else {
|
||||
$comment = null;
|
||||
$comment_id = 0;
|
||||
$comment = null;
|
||||
}
|
||||
|
||||
switch ( $action ) {
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user