From 8c7fe3c809efa69fb1e599c1ff2d820a3a53fd6f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 26 Feb 2025 15:01:52 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@59871 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php index b53120ea1a..92743b5ddc 100644 --- a/src/wp-includes/comment.php +++ b/src/wp-includes/comment.php @@ -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 );