Autosave too slow to re-enable publishing buttons
|Reported by:||duck_||Owned by:||azaozz|
The autosave_update_post_ID function in autosave.js is pretty much useless since r12987 because it will always return early due to new posts now having an ID (line 147). Side effects being that the publishing buttons take the default 5 seconds to be enabled again and the post continues to be recognised as an auto-draft (so this will happen on further autosaves). This could be especially annoying on custom post types which only have a title, enter the title click out of the box (but not publish etc.) you now have to wait 5 seconds before publishing.
Also, the trash button is always shown and the hiddenaction is always 'editpost', so no need to fadeIn and change value respectively.
The only other place the autosave_update_post_ID function is used is in response to adding a custom field (post.js), again, in its current form this is useless.