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.

git-svn-id: https://develop.svn.wordpress.org/trunk@59903 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Pascal Birchler 2025-03-03 09:03:26 +00:00
parent b4f0fc916e
commit 1b236aa435

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();