Also ping when going from private to published.

git-svn-id: http://svn.automattic.com/wordpress/trunk@179 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
mikelittle 2003-06-06 23:45:50 +00:00
parent 8bf3591d67
commit 4b4315310e
1 changed files with 2 additions and 2 deletions

View File

@ -204,8 +204,8 @@ switch($action) {
sleep($sleep_after_edit);
}
// are we going from unpublished to publishd?
if (($prev_status == 'draft') && ($post_status == 'publish')) {
// are we going from draft/private to publishd?
if ((($prev_status == 'draft') || ($prev_status == 'private')) && ($post_status == 'publish')) {
pingWeblogs($blog_ID);
pingCafelog($cafelogID, $post_title, $post_ID);
pingBlogs($blog_ID);