From 202758f35d0b4e099aa31b78cb185a8220727b92 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Fri, 13 May 2005 21:45:51 +0000 Subject: [PATCH] http://mosquito.wordpress.org/view.php?id=1347 - Hat tip: Skippy the Salacious git-svn-id: https://develop.svn.wordpress.org/trunk@2604 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/post.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-admin/post.php b/wp-admin/post.php index a1009bc38b..d47a163b91 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -193,11 +193,12 @@ case 'post': do_action('save_post', $post_ID); if ('publish' == $post_status) { + do_action('publish_post', $post_ID); if ($post_pingback) pingback($content, $post_ID); do_enclose( $content, $post_ID ); do_trackbacks($post_ID); - do_action('publish_post', $post_ID); + } if ($post_status == 'static') { @@ -429,6 +430,8 @@ case 'editpost': if ($prev_status != 'publish' && $post_status == 'publish') do_action('private_to_published', $post_ID); + do_action('edit_post', $post_ID); + if ($post_status == 'publish') { do_action('publish_post', $post_ID); do_trackbacks($post_ID); @@ -445,7 +448,6 @@ case 'editpost': } } - do_action('edit_post', $post_ID); exit(); break;