diff --git wp-includes/post.php wp-includes/post.php
index 6ffd960c72..31d1a5601d 100644
|
|
|
function wp_insert_post( $postarr, $wp_error = false ) {
|
| 4096 | 4096 | * @param int $post_ID Post ID. |
| 4097 | 4097 | * @param WP_Post $post_after Post object following the update. |
| 4098 | 4098 | * @param WP_Post $post_before Post object before the update. |
| | 4099 | * @param array $postarr An array of sanitized post data. |
| 4099 | 4100 | */ |
| 4100 | | do_action( 'post_updated', $post_ID, $post_after, $post_before ); |
| | 4101 | do_action( 'post_updated', $post_ID, $post_after, $post_before, $postarr ); |
| | 4102 | } else { |
| | 4103 | /** |
| | 4104 | * Fires once a new post has been inserted. |
| | 4105 | * |
| | 4106 | * @since X.X.X |
| | 4107 | * |
| | 4108 | * @param int $post_ID Post ID. |
| | 4109 | * @param WP_Post $post Post object following the insertion. |
| | 4110 | * @param array $postarr An array of sanitized post data. |
| | 4111 | */ |
| | 4112 | do_action( 'post_inserted', $post_ID, $post, $postarr ); |
| 4101 | 4113 | } |
| 4102 | 4114 | |
| 4103 | 4115 | /** |