Show
Ignore:
Timestamp:
02/01/05 13:21:12 (4 years ago)
Author:
michelvaldrighi
Message:

set emailed posts to be published. won't do no good moblogging if in the end one has to publish everything later

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-mail.php

    r2176 r2196  
    133133    $post_category = $post_categories; 
    134134 
    135     $post_data = compact('post_content','post_title','post_date','post_date_gmt','post_author','post_category'); 
     135    // or maybe we should leave the choice to email drafts? propose a way 
     136    $post_status = 'publish'; 
     137 
     138    $post_data = compact('post_content','post_title','post_date','post_date_gmt','post_author','post_category', 'post_status'); 
    136139 
    137140    $post_ID = wp_insert_post($post_data);