Resurrect save_post action for back compat. fixes #2063
git-svn-id: http://svn.automattic.com/wordpress/trunk@3291 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
93cd8402f2
commit
b5da83787d
|
@ -202,6 +202,7 @@ function wp_insert_post($postarr = array()) {
|
||||||
add_post_meta($post_ID, '_wp_page_template', $page_template, true);
|
add_post_meta($post_ID, '_wp_page_template', $page_template, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
do_action('save_post', $post_ID);
|
||||||
do_action('wp_insert_post', $post_ID);
|
do_action('wp_insert_post', $post_ID);
|
||||||
|
|
||||||
return $post_ID;
|
return $post_ID;
|
||||||
|
|
Loading…
Reference in New Issue