[wp-trac] [WordPress Trac] #13400: Autosave too slow to re-enable publishing buttons
WordPress Trac
wp-trac at lists.automattic.com
Sat May 15 11:33:20 UTC 2010
#13400: Autosave too slow to re-enable publishing buttons
--------------------------+-------------------------------------------------
Reporter: duck_ | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: General | Version: 3.0
Severity: normal | Keywords: has-patch needs-testing
--------------------------+-------------------------------------------------
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 ([http://core.trac.wordpress.org/browser/trunk/wp-
includes/js/autosave.dev.js#L147 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
([http://core.trac.wordpress.org/browser/trunk/wp-
admin/js/post.dev.js#L334 post.js]), again, in its current form this is
useless.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13400>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list