[wp-trac] Re: [WordPress Trac] #3020: Autosave
WordPress Trac
wp-trac at lists.automattic.com
Thu Aug 10 23:47:13 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):
I found the culprit, in copying code over I missed out on two lines that
copy $_POST['content'] to $_POST['post_content']. Inconsistent naming is
great. :)
In the process, I also realized that updating the post could overwrite
things like the ping status with the default because they are not sent
along with the autosave, and so if someone is editing a draft where they
changed these settings they could be lost. I personally would rather we
not send all this information along in the autosave, so my first thought
is to patch wp_insert_post to use the old values instead of inserting the
defaults, as this makes sense to me for plugins that may want to update a
post with wp_insert_post. Thoughts?
--
Ticket URL: <http://trac.wordpress.org/ticket/3020>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list