[wp-trac] Re: [WordPress Trac] #3020: Autosave

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 11 00:40:37 GMT 2006


#3020: Autosave
----------------------------+-----------------------------------------------
 Reporter:  masquerade      |        Owner:  anonymous
     Type:  enhancement     |       Status:  new      
 Priority:  normal          |    Milestone:  2.1      
Component:  Administration  |      Version:  2.1      
 Severity:  normal          |   Resolution:           
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by masquerade):

 New patch, autsave-2.diff

 1. Adds wp_write_post() which returns WP_Error.
 1. write_post() calls wp_write_post and uses wp_die as before, to keep
 i18n and such alive.
 1. Fixes emptying post_content
 1. Autosave now uses wp_update_post instead of wp_insert_post
 1. wp_insert_post now better supports updating posts. This is great for
 the plugin API because now if a plugin author wants to update only one
 field, that one field should be able to be passed in to wp_insert_post and
 the rest of the post data remains the same. This needs another set of eyes
 run over it.

 I might've forgotten something, but that just means its not as important
 :)

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


More information about the wp-trac mailing list