diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 47f8eb9665..7a824f5b07 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -2071,7 +2071,7 @@ function wp_insert_comment( $commentdata ) { $id = (int) $wpdb->insert_id; - if ( 1 == $comment_approved ) { + if ( 1 === (int) $comment_approved ) { wp_update_comment_count( $comment_post_id ); $data = array(); diff --git a/wp-includes/version.php b/wp-includes/version.php index 2c80b0a2e4..c76dafb9df 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59914'; +$wp_version = '6.8-alpha-59915'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.