Docs: Correct the type for transition_comment_status action parameters.

By the time this hook runs, the `$new_status` and `$old_status` values can only be a string.

Follow-up to [26491].

See #62281.
Built from https://develop.svn.wordpress.org/trunk@59871


git-svn-id: http://core.svn.wordpress.org/trunk@59213 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2025-02-26 15:03:25 +00:00
parent 365645c608
commit 91f31a5169
2 changed files with 3 additions and 3 deletions

View File

@ -1821,8 +1821,8 @@ function wp_transition_comment_status( $new_status, $old_status, $comment ) {
*
* @since 2.7.0
*
* @param int|string $new_status The new comment status.
* @param int|string $old_status The old comment status.
* @param string $new_status The new comment status.
* @param string $old_status The old comment status.
* @param WP_Comment $comment Comment object.
*/
do_action( 'transition_comment_status', $new_status, $old_status, $comment );

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.8-alpha-59870';
$wp_version = '6.8-alpha-59871';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.