diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php
index 2487e5b4c2..4d07fecaf6 100644
a
|
b
|
function wp_transition_post_status( $new_status, $old_status, $post ) { |
5156 | 5156 | * transitioned to a status, use the {@see 'transition_post_status'} hook instead. |
5157 | 5157 | * |
5158 | 5158 | * @since 2.3.0 |
| 5159 | * @since 5.9.0 The `$old_status` parameter was added. |
5159 | 5160 | * |
5160 | | * @param int $post_id Post ID. |
5161 | | * @param WP_Post $post Post object. |
| 5161 | * @param int $post_id Post ID. |
| 5162 | * @param WP_Post $post Post object. |
| 5163 | * @param string $old_status Old post status. |
5162 | 5164 | */ |
5163 | | do_action( "{$new_status}_{$post->post_type}", $post->ID, $post ); |
| 5165 | do_action( "{$new_status}_{$post->post_type}", $post->ID, $post, $old_status ); |
5164 | 5166 | } |
5165 | 5167 | |
5166 | 5168 | /** |