Skip to content

Commit d9846f8

Browse files
Coding Standards: Use strict comparison in wp_transition_comment_status().
Follow-up to [9195]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. git-svn-id: https://develop.svn.wordpress.org/trunk@59867 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 69378cc commit d9846f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/wp-includes/comment.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1815,7 +1815,7 @@ function wp_transition_comment_status( $new_status, $old_status, $comment ) {
18151815
}
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.
18211821
*
@@ -1826,6 +1826,7 @@ function wp_transition_comment_status( $new_status, $old_status, $comment ) {
18261826
* @param WP_Comment $comment Comment object.
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.
18311832
*

0 commit comments

Comments
 (0)