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

WordPress Trac wp-trac at lists.automattic.com
Mon May 17 16:04:48 UTC 2010


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

  * keywords:  needs-patch => has-patch


Comment:

 13401.2.patch: To prevent that edit_post() add the meta we can clear
 $_POST. Then fill it with the needed data and after edit_post() we can
 restore the original $_POST.

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


More information about the wp-trac mailing list