Skip to content

Commit

Permalink
Coding Standards: Use strict comparison in `wp_xmlrpc_server::wp_dele…
Browse files Browse the repository at this point in the history
…teCategory()`.

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
  • Loading branch information
SergeyBiryukov committed Jan 17, 2025
1 parent f1dc191 commit 6677425
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wp-includes/class-wp-xmlrpc-server.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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.
*
Expand Down

0 comments on commit 6677425

Please sign in to comment.