Add publish_page hook
git-svn-id: http://svn.automattic.com/wordpress/trunk@3787 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e0939f1323
commit
afc4ec89bd
|
@ -208,6 +208,9 @@ function wp_insert_post($postarr = array()) {
|
||||||
if ( !empty($page_template) )
|
if ( !empty($page_template) )
|
||||||
if ( ! update_post_meta($post_ID, '_wp_page_template', $page_template))
|
if ( ! update_post_meta($post_ID, '_wp_page_template', $page_template))
|
||||||
add_post_meta($post_ID, '_wp_page_template', $page_template, true);
|
add_post_meta($post_ID, '_wp_page_template', $page_template, true);
|
||||||
|
|
||||||
|
if ( $post_status == 'publish' )
|
||||||
|
do_action('publish_page', $post_ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( 'future' == $post_status ) {
|
if ( 'future' == $post_status ) {
|
||||||
|
|
Loading…
Reference in New Issue