Make WordPress Core

Changeset 59867


Ignore:
Timestamp:
02/25/2025 05:49:25 PM (3 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp_transition_comment_status().

Follow-up to [9195].

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment.php

    r59864 r59867  
    18161816
    18171817    // Call the hooks.
    1818     if ( $new_status != $old_status ) {
     1818    if ( $new_status !== $old_status ) {
    18191819        /**
    18201820         * Fires when the comment status is in transition.
     
    18271827         */
    18281828        do_action( 'transition_comment_status', $new_status, $old_status, $comment );
     1829
    18291830        /**
    18301831         * Fires when the comment status is in transition from one specific status to another.
Note: See TracChangeset for help on using the changeset viewer.