From 2f84e4d158dada19a73e006fec47b661a84eb622 Mon Sep 17 00:00:00 2001 From: michelvaldrighi Date: Tue, 1 Feb 2005 13:21:12 +0000 Subject: [PATCH] set emailed posts to be published. won't do no good moblogging if in the end one has to publish everything later git-svn-id: https://develop.svn.wordpress.org/trunk@2196 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-mail.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-mail.php b/wp-mail.php index 5a9d8c208d..a106e66aed 100644 --- a/wp-mail.php +++ b/wp-mail.php @@ -132,7 +132,10 @@ for ($i=1; $i <= $count; $i++) : $post_category = $post_categories; - $post_data = compact('post_content','post_title','post_date','post_date_gmt','post_author','post_category'); + // or maybe we should leave the choice to email drafts? propose a way + $post_status = 'publish'; + + $post_data = compact('post_content','post_title','post_date','post_date_gmt','post_author','post_category', 'post_status'); $post_ID = wp_insert_post($post_data);