diff --git a/wp-includes/post.php b/wp-includes/post.php index 07ce72b42d..8716e29961 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -5284,11 +5284,13 @@ function wp_transition_post_status( $new_status, $old_status, $post ) { * transitioned to a status, use the {@see 'transition_post_status'} hook instead. * * @since 2.3.0 + * @since 5.9.0 Added `$old_status` parameter. * - * @param int $post_id Post ID. - * @param WP_Post $post Post object. + * @param int $post_id Post ID. + * @param WP_Post $post Post object. + * @param string $old_status Old post status. */ - do_action( "{$new_status}_{$post->post_type}", $post->ID, $post ); + do_action( "{$new_status}_{$post->post_type}", $post->ID, $post, $old_status ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index c8d40016cd..16e6e5fbef 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-52066'; +$wp_version = '5.9-alpha-52067'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.