diff --git a/wp-includes/post.php b/wp-includes/post.php index 9f2e672c44..8b97e4ef12 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -2872,8 +2872,8 @@ function wp_insert_post($postarr, $wp_error = false) { do_action( 'post_updated', $post_ID, $post_after, $post_before); } - do_action('save_post', $post_ID, $post); - do_action('wp_insert_post', $post_ID, $post); + do_action( 'save_post', $post_ID, $post, $update ); + do_action( 'wp_insert_post', $post_ID, $post, $update ); return $post_ID; }