mirror of
git://develop.git.wordpress.org/
synced 2025-03-20 12:00:03 +01:00
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
This commit is contained in:
parent
69378cc472
commit
d9846f86b1
@ -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.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user