Make WordPress Core

Ticket #410: wp-mail-fix.diff.txt

File wp-mail-fix.diff.txt, 757 bytes (added by davidcrickett, 19 years ago)
Line 
1Index: wordpress/wp-mail.php
2===================================================================
3RCS file: /cvsroot/cafelog/wordpress/wp-mail.php,v
4retrieving revision 1.21
5diff -U3 -r1.21 wp-mail.php
6--- wordpress/wp-mail.php       8 Sep 2004 08:57:52 -0000       1.21
7+++ wordpress/wp-mail.php       23 Nov 2004 12:59:05 -0000
8@@ -140,9 +140,11 @@
9 
10        $post_category = $post_categories;
11 
12-       $post_data = compact('post_content','post_title','post_date','post_date_gmt','post_author','post_category');
13+       $post_status = 'publish';
14 
15-       wp_insert_post($post_data);
16+       $post_data = compact('post_content','post_title','post_date','post_date_gmt','post_author','post_category', 'post_status');
17+
18+       $post_ID = wp_insert_post($post_data);
19 
20        do_action('publish_phone', $post_ID);
21