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

WordPress Trac wp-trac at lists.automattic.com
Sat May 15 11:38:26 UTC 2010


#13401: Add custom field to new post doesn't create draft
--------------------------+-------------------------------------------------
 Reporter:  duck_         |       Owner:             
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  Unassigned 
Component:  General       |     Version:  3.0        
 Severity:  normal        |    Keywords:  needs-patch
--------------------------+-------------------------------------------------
 The {{{add-meta}}} case in admin-ajax.php no longer creates a draft post
 if custom field data is added to a new post. This is because it is
 checking for a post ID < 0 instead of checking for auto-draft status.

 Steps:

 1. Add new post
 2. Add custom field - without letting autosave occur, so don't enter title
 etc.
 3. Leave page without saving

 Expected: 2.9 behaviour was to create a draft with custom fields and draft
 title

 Actual: New post stays as auto-draft so isn't displayed in list of posts
 to edit

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


More information about the wp-trac mailing list