Permalink
Browse files

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: http://svn.automattic.com/wordpress/trunk@2196 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent e1325ba commit e75e000346a5565af4878a7c544420a0d1009818 michelvaldrighi committed Feb 1, 2005
Showing with 4 additions and 1 deletion.
  1. +4 −1 wp-mail.php
View
5 wp-mail.php
@@ -132,7 +132,10 @@
$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);

0 comments on commit e75e000

Please sign in to comment.