mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-09 18:08:09 +01:00
http://mosquito.wordpress.org/view.php?id=1347 - Hat tip: Skippy the Salacious
git-svn-id: http://svn.automattic.com/wordpress/trunk@2604 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4160fafdcd
commit
32cb17c3dd
@ -193,11 +193,12 @@ case 'post':
|
|||||||
do_action('save_post', $post_ID);
|
do_action('save_post', $post_ID);
|
||||||
|
|
||||||
if ('publish' == $post_status) {
|
if ('publish' == $post_status) {
|
||||||
|
do_action('publish_post', $post_ID);
|
||||||
if ($post_pingback)
|
if ($post_pingback)
|
||||||
pingback($content, $post_ID);
|
pingback($content, $post_ID);
|
||||||
do_enclose( $content, $post_ID );
|
do_enclose( $content, $post_ID );
|
||||||
do_trackbacks($post_ID);
|
do_trackbacks($post_ID);
|
||||||
do_action('publish_post', $post_ID);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($post_status == 'static') {
|
if ($post_status == 'static') {
|
||||||
@ -429,6 +430,8 @@ case 'editpost':
|
|||||||
if ($prev_status != 'publish' && $post_status == 'publish')
|
if ($prev_status != 'publish' && $post_status == 'publish')
|
||||||
do_action('private_to_published', $post_ID);
|
do_action('private_to_published', $post_ID);
|
||||||
|
|
||||||
|
do_action('edit_post', $post_ID);
|
||||||
|
|
||||||
if ($post_status == 'publish') {
|
if ($post_status == 'publish') {
|
||||||
do_action('publish_post', $post_ID);
|
do_action('publish_post', $post_ID);
|
||||||
do_trackbacks($post_ID);
|
do_trackbacks($post_ID);
|
||||||
@ -445,7 +448,6 @@ case 'editpost':
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
do_action('edit_post', $post_ID);
|
|
||||||
exit();
|
exit();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user