Make WordPress Core

Changeset 59660


Ignore:
Timestamp:
01/17/2025 10:36:41 AM (4 months ago)
Author:
SergeyBiryukov
Message:

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

Follow-up to [20157], [32733].

Props aristath, poena, afercia, SergeyBiryukov.
See #62279.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r59632 r59660  
    35053505        $status = wp_delete_term( $category_id, 'category' );
    35063506
    3507         if ( true == $status ) {
     3507        if ( true === $status ) {
    35083508            /**
    35093509             * Fires after a category has been successfully deleted via XML-RPC.
     
    37553755        $status = wp_delete_comment( $comment_id );
    37563756
    3757         if ( $status ) {
     3757        if ( true === $status ) {
    37583758            /**
    37593759             * Fires after a comment has been successfully deleted via XML-RPC.
Note: See TracChangeset for help on using the changeset viewer.