Coding Standards: Use strict comparison in wp_transition_comment_status().
Follow-up to [9195]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. Built from https://develop.svn.wordpress.org/trunk@59867 git-svn-id: http://core.svn.wordpress.org/trunk@59209 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1815,7 +1815,7 @@ function wp_transition_comment_status( $new_status, $old_status, $comment ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Call the hooks.
|
// Call the hooks.
|
||||||
if ( $new_status != $old_status ) {
|
if ( $new_status !== $old_status ) {
|
||||||
/**
|
/**
|
||||||
* Fires when the comment status is in transition.
|
* 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.
|
* @param WP_Comment $comment Comment object.
|
||||||
*/
|
*/
|
||||||
do_action( 'transition_comment_status', $new_status, $old_status, $comment );
|
do_action( 'transition_comment_status', $new_status, $old_status, $comment );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fires when the comment status is in transition from one specific status to another.
|
* Fires when the comment status is in transition from one specific status to another.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.8-alpha-59866';
|
$wp_version = '6.8-alpha-59867';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|||||||
Reference in New Issue
Block a user