Pass $update = true to the save_post and wp_insert_post hooks in wp_publish_post().
see #21450, [24823]. props wpsmith. fixes #24957. git-svn-id: https://develop.svn.wordpress.org/trunk@24977 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5b6261954b
commit
146c230132
@ -2969,8 +2969,8 @@ function wp_publish_post( $post ) {
|
||||
wp_transition_post_status( 'publish', $old_status, $post );
|
||||
|
||||
do_action( 'edit_post', $post->ID, $post );
|
||||
do_action( 'save_post', $post->ID, $post );
|
||||
do_action( 'wp_insert_post', $post->ID, $post );
|
||||
do_action( 'save_post', $post->ID, $post, true );
|
||||
do_action( 'wp_insert_post', $post->ID, $post, true );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user