Skip to content

Commit e41f4f9

Browse files
Coding Standards: Use strict comparison in wp_xmlrpc_server::_prepare_comment().
Follow-up to [20856]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. git-svn-id: https://develop.svn.wordpress.org/trunk@59710 602fd350-edb4-49c9-b593-d223f7449a82
1 parent de504a6 commit e41f4f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wp-includes/class-wp-xmlrpc-server.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,11 +1179,11 @@ protected function _prepare_comment( $comment ) {
11791179
// Format page date.
11801180
$comment_date_gmt = $this->_convert_date_gmt( $comment->comment_date_gmt, $comment->comment_date );
11811181

1182-
if ( '0' == $comment->comment_approved ) {
1182+
if ( '0' === $comment->comment_approved ) {
11831183
$comment_status = 'hold';
11841184
} elseif ( 'spam' === $comment->comment_approved ) {
11851185
$comment_status = 'spam';
1186-
} elseif ( '1' == $comment->comment_approved ) {
1186+
} elseif ( '1' === $comment->comment_approved ) {
11871187
$comment_status = 'approve';
11881188
} else {
11891189
$comment_status = $comment->comment_approved;

0 commit comments

Comments
 (0)