Coding Standards: Revert strict comparison added in [59898].

`$comment_approved` can be both a string or an integer, so this change had unintended consequences such as breaking WP-CLI tests.

See #62279.
Built from https://develop.svn.wordpress.org/trunk@59903


git-svn-id: http://core.svn.wordpress.org/trunk@59245 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Pascal Birchler 2025-03-03 09:05:37 +00:00
parent 371495c91d
commit 582128f4f2
2 changed files with 2 additions and 2 deletions

View File

@ -2071,7 +2071,7 @@ function wp_insert_comment( $commentdata ) {
$id = (int) $wpdb->insert_id;
if ( 1 === $comment_approved ) {
if ( 1 == $comment_approved ) {
wp_update_comment_count( $comment_post_id );
$data = array();

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.8-alpha-59902';
$wp_version = '6.8-alpha-59903';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.