Resurrect save_post action for back compat. fixes #2063
git-svn-id: https://develop.svn.wordpress.org/trunk@3291 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e225cc0e92
commit
b74a303ec5
@ -202,6 +202,7 @@ function wp_insert_post($postarr = array()) {
|
||||
add_post_meta($post_ID, '_wp_page_template', $page_template, true);
|
||||
}
|
||||
|
||||
do_action('save_post', $post_ID);
|
||||
do_action('wp_insert_post', $post_ID);
|
||||
|
||||
return $post_ID;
|
||||
|
Loading…
Reference in New Issue
Block a user