Commit 52a592e1b8 for wordpress.org
commit 52a592e1b81013e71f75fd89dc2e2c8ea8fa53d2
Author: Sergey Biryukov <sergeybiryukov.ru@gmail.com>
Date: Fri Jan 17 10:39:18 2025 +0000
Coding Standards: Use strict comparison in `wp_xmlrpc_server::wp_deleteCategory()`.
Follow-up to [20157], [32733].
Props aristath, poena, afercia, SergeyBiryukov.
See #62279.
Built from https://develop.svn.wordpress.org/trunk@59660
git-svn-id: http://core.svn.wordpress.org/trunk@59003 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php
index 527bf23966..84f64967a4 100644
--- a/wp-includes/class-wp-xmlrpc-server.php
+++ b/wp-includes/class-wp-xmlrpc-server.php
@@ -3504,7 +3504,7 @@ class wp_xmlrpc_server extends IXR_Server {
$status = wp_delete_term( $category_id, 'category' );
- if ( true == $status ) {
+ if ( true === $status ) {
/**
* Fires after a category has been successfully deleted via XML-RPC.
*
@@ -3754,7 +3754,7 @@ class wp_xmlrpc_server extends IXR_Server {
$status = wp_delete_comment( $comment_id );
- if ( $status ) {
+ if ( true === $status ) {
/**
* Fires after a comment has been successfully deleted via XML-RPC.
*
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 353f7a2b0d..aa22f8daa4 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '6.8-alpha-59659';
+$wp_version = '6.8-alpha-59660';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.