Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#13400 closed defect (bug) (fixed)

Autosave too slow to re-enable publishing buttons

Reported by: duck_ Owned by: azaozz
Milestone: 3.0 Priority: normal
Severity: blocker Version: 3.0
Component: Autosave Keywords: has-patch needs-testing
Focuses: Cc:


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.

Attachments (1)

autosave-new.diff (1.9 KB) - added by duck_ 8 years ago.

Download all attachments as: .zip

Change History (5)

8 years ago

#1 @duck_
8 years ago

  • Component changed from General to Autosave
  • Owner set to azaozz

#2 @nacin
8 years ago

  • Milestone changed from Unassigned to 3.0

#3 @ryan
8 years ago

  • Severity changed from normal to blocker

#4 @ryan
8 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [14663]) autosave_update_post_ID() no longer needed. Fix button enable lag. Props duck_. fixes #13400

Note: See TracTickets for help on using tickets.