Skip to content

Commit 39f8ea3

Browse files
Coding Standards: Use strict comparison in wp_get_comment_status().
Follow-up to [546], [2258], [5666], [47219], [47808]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. git-svn-id: https://develop.svn.wordpress.org/trunk@59826 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 4599605 commit 39f8ea3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wp-includes/comment.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,11 +1762,11 @@ function wp_get_comment_status( $comment_id ) {
17621762

17631763
$approved = $comment->comment_approved;
17641764

1765-
if ( null == $approved ) {
1765+
if ( null === $approved ) {
17661766
return false;
1767-
} elseif ( '1' == $approved ) {
1767+
} elseif ( '1' === $approved ) {
17681768
return 'approved';
1769-
} elseif ( '0' == $approved ) {
1769+
} elseif ( '0' === $approved ) {
17701770
return 'unapproved';
17711771
} elseif ( 'spam' === $approved ) {
17721772
return 'spam';

0 commit comments

Comments
 (0)