mirror of
git://develop.git.wordpress.org/
synced 2025-03-23 21:39:50 +01:00
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
This commit is contained in:
parent
de504a63c0
commit
e41f4f9aa9
@ -1179,11 +1179,11 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
// Format page date.
|
||||
$comment_date_gmt = $this->_convert_date_gmt( $comment->comment_date_gmt, $comment->comment_date );
|
||||
|
||||
if ( '0' == $comment->comment_approved ) {
|
||||
if ( '0' === $comment->comment_approved ) {
|
||||
$comment_status = 'hold';
|
||||
} elseif ( 'spam' === $comment->comment_approved ) {
|
||||
$comment_status = 'spam';
|
||||
} elseif ( '1' == $comment->comment_approved ) {
|
||||
} elseif ( '1' === $comment->comment_approved ) {
|
||||
$comment_status = 'approve';
|
||||
} else {
|
||||
$comment_status = $comment->comment_approved;
|
||||
|
Loading…
x
Reference in New Issue
Block a user