From 6677425622ca570c0fb190295dd610150de33d17 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 17 Jan 2025 10:36:41 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp_xmlrpc_server::wp_deleteCategory()`. Follow-up to [20157], [32733]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. git-svn-id: https://develop.svn.wordpress.org/trunk@59660 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-xmlrpc-server.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/class-wp-xmlrpc-server.php b/src/wp-includes/class-wp-xmlrpc-server.php index 527bf23966be2..84f64967a45ce 100644 --- a/src/wp-includes/class-wp-xmlrpc-server.php +++ b/src/wp-includes/class-wp-xmlrpc-server.php @@ -3504,7 +3504,7 @@ public function wp_deleteCategory( $args ) { $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 @@ public function wp_deleteComment( $args ) { $status = wp_delete_comment( $comment_id ); - if ( $status ) { + if ( true === $status ) { /** * Fires after a comment has been successfully deleted via XML-RPC. *