diff --git src/wp-includes/post.php src/wp-includes/post.php
index 52fb11909c..a0b2b90c65 100644
|
|
|
function wp_insert_post( $postarr, $wp_error = false ) { |
| 3694 | 3694 | } |
| 3695 | 3695 | |
| 3696 | 3696 | if ( $update ) { |
| | 3697 | |
| | 3698 | /** |
| | 3699 | * Fires once an existing post has been updated. |
| | 3700 | * |
| | 3701 | * The dynamic portion of the hook name, `$post->post_type`, refers to |
| | 3702 | * the post type slug. |
| | 3703 | * |
| | 3704 | * @since 4.9.5 |
| | 3705 | * |
| | 3706 | * @param int $post_ID Post ID. |
| | 3707 | * @param WP_Post $post Post object. |
| | 3708 | */ |
| | 3709 | do_action( "edit_post_{$post->post_type}", $post_ID, $post ); |
| | 3710 | |
| 3697 | 3711 | /** |
| 3698 | 3712 | * Fires once an existing post has been updated. |
| 3699 | 3713 | * |