Skip to content

Commit c19e4a4

Browse files
Coding Standards: Use strict comparison in wp_insert_comment().
Follow-up to [3104], [3193], [3887]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. git-svn-id: https://develop.svn.wordpress.org/trunk@59898 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 1964aec commit c19e4a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)