Coding Standards: Use strict comparison in wp_xmlrpc_server::_prepare_comment().

Follow-up to [20856].

Props aristath, poena, afercia, SergeyBiryukov.
See #62279.
Built from https://develop.svn.wordpress.org/trunk@59710


git-svn-id: http://core.svn.wordpress.org/trunk@59052 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2025-01-26 18:53:23 +00:00
parent cf2aebff7f
commit 906810c2db
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.8-alpha-59709';
$wp_version = '6.8-alpha-59710';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.