Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#25636 closed enhancement (fixed)

Autosave callbacks

Reported by: carldanley Owned by:
Priority: normal Milestone: 3.9
Component: Autosave Version:
Severity: normal Keywords:
Cc: Focuses:

Description

When using the global autosave function to manually call an autosave on updated content, I noticed there is no way to define a callback for *after* autosave happens; whether fail/success.

That being said, it'd be good to define a callback that we can use. Please see the attached diff.

Attachments (1)

25636.diff​ (663 bytes ) - added by carldanley 13 years ago.

Download all attachments as: .zip

Change History (4)

@carldanley
13 years ago

#1 @azaozz
13 years ago

Autosave is being updated/refactored in #25272 (early 3.8, another pair of eyes welcome). It will use heartbeat for transport, so the usual heartbeat events can be used to hook into it.

#2 @SergeyBiryukov
13 years ago

  • Component General → Autosave
  • Type defect (bug) → enhancement

#3 @azaozz
13 years ago

  • Milestone Awaiting Review → 3.9
  • Resolution → fixed
  • Status new → closed

Fixed in [26995]. In addition to the Heartbeat events, autosave triggers 'after-autosave' jQuery event.

Note: See TracTickets for help on using tickets.