Index: wordpress/wp-mail.php =================================================================== RCS file: /cvsroot/cafelog/wordpress/wp-mail.php,v retrieving revision 1.21 diff -U3 -r1.21 wp-mail.php --- wordpress/wp-mail.php 8 Sep 2004 08:57:52 -0000 1.21 +++ wordpress/wp-mail.php 23 Nov 2004 12:59:05 -0000 @@ -140,9 +140,11 @@ $post_category = $post_categories; - $post_data = compact('post_content','post_title','post_date','post_date_gmt','post_author','post_category'); + $post_status = 'publish'; - wp_insert_post($post_data); + $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); do_action('publish_phone', $post_ID);