[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 09:15:07 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 ocean90):

 ryan, what do you mean? If i add the original $_POST to edit_post() it
 will add the meta to and I can't get the meta id, because it returns only
 the post id. Because of that I make a backup, send to edit_post() only
 title,status,post_id,post_type and then restore the original $_POST to add
 the meta (and then I have the meta id).

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


More information about the wp-trac mailing list