Skip to content

Commit 1b236aa

Browse files
committed
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
1 parent b4f0fc9 commit 1b236aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/comment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2071,7 +2071,7 @@ function wp_insert_comment( $commentdata ) {
20712071

20722072
$id = (int) $wpdb->insert_id;
20732073

2074-
if ( 1 === $comment_approved ) {
2074+
if ( 1 == $comment_approved ) {
20752075
wp_update_comment_count( $comment_post_id );
20762076

20772077
$data = array();

0 commit comments

Comments
 (0)