[wp-trac] [WordPress Trac] #13401: Add custom field to new post doesn't create draft

WordPress Trac wp-trac at lists.automattic.com
Tue May 25 14:21:36 UTC 2010


#13401: Add custom field to new post doesn't create draft
--------------------------+-------------------------------------------------
 Reporter:  duck_         |       Owner:           
     Type:  defect (bug)  |      Status:  new      
 Priority:  high          |   Milestone:  3.0      
Component:  General       |     Version:  3.0      
 Severity:  blocker       |    Keywords:  has-patch
--------------------------+-------------------------------------------------

Comment(by ryan):

 {{{
 $post_data = array();
 $post_data['post_ID'] = $pid;
 ...
 $pid = edit_post($post_data);
 }}}

 That way _POST can be left untouched.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13401#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list