From 91f31a5169e976f032e5bce46d225b6fbad78415 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 26 Feb 2025 15:03:25 +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. Built from https://develop.svn.wordpress.org/trunk@59871 git-svn-id: http://core.svn.wordpress.org/trunk@59213 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index b53120ea1a..92743b5ddc 100644 --- a/wp-includes/comment.php +++ b/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 ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 1c53a575df..e6b02eb2c0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.