Also ping when going from private to published.

git-svn-id: https://develop.svn.wordpress.org/trunk@179 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mike Little 2003-06-06 23:45:50 +00:00
parent 676d4da628
commit 32549bc276
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);