diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php
index fabd68edb2..94f95835d2 100644
a
|
b
|
function wp_trash_post( $post_id = 0 ) { |
3591 | 3591 | * Fires before a post is sent to the Trash. |
3592 | 3592 | * |
3593 | 3593 | * @since 3.3.0 |
| 3594 | * @since 6.3.0 Added the `$post` parameter. |
3594 | 3595 | * |
3595 | | * @param int $post_id Post ID. |
| 3596 | * @param int $post_id Post ID. |
| 3597 | * @param WP_Post $post Post object. |
3596 | 3598 | */ |
3597 | | do_action( 'wp_trash_post', $post_id ); |
| 3599 | do_action( 'wp_trash_post', $post_id, $post ); |
3598 | 3600 | |
3599 | 3601 | add_post_meta( $post_id, '_wp_trash_meta_status', $post->post_status ); |
3600 | 3602 | add_post_meta( $post_id, '_wp_trash_meta_time', time() ); |