From b9ea830dd6eff5da071ae81c7ad77dccb14d2c73 Mon Sep 17 00:00:00 2001 From: michelvaldrighi Date: Mon, 31 Jan 2005 17:19:56 +0000 Subject: [PATCH] no wonder posting by e-mail was broken git-svn-id: http://svn.automattic.com/wordpress/trunk@2174 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-mail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-mail.php b/wp-mail.php index 8348125b29..4ef58db249 100644 --- a/wp-mail.php +++ b/wp-mail.php @@ -142,7 +142,7 @@ for ($i=1; $i <= $count; $i++) : $post_data = compact('post_content','post_title','post_date','post_date_gmt','post_author','post_category'); - wp_insert_post($post_data); + $post_ID = wp_insert_post($post_data); do_action('publish_phone', $post_ID);