diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php index 6d20022979..b53120ea1a 100644 --- a/src/wp-includes/comment.php +++ b/src/wp-includes/comment.php @@ -1815,7 +1815,7 @@ function wp_transition_comment_status( $new_status, $old_status, $comment ) { } // Call the hooks. - if ( $new_status != $old_status ) { + if ( $new_status !== $old_status ) { /** * Fires when the comment status is in transition. * @@ -1826,6 +1826,7 @@ function wp_transition_comment_status( $new_status, $old_status, $comment ) { * @param WP_Comment $comment Comment object. */ do_action( 'transition_comment_status', $new_status, $old_status, $comment ); + /** * Fires when the comment status is in transition from one specific status to another. *