From 906810c2db97e61235326eaaaafdd26afb531355 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 26 Jan 2025 18:53:23 +0000 Subject: [PATCH] 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 --- wp-includes/class-wp-xmlrpc-server.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index 695727b680..9da0e1f9a1 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -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; diff --git a/wp-includes/version.php b/wp-includes/version.php index ed1acef3f1..da92cb53ef 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.