Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#25636 closed enhancement (fixed)

Autosave callbacks

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

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 11 years ago.

Download all attachments as: .zip

Change History (4)

@carldanley
11 years ago

#1 @azaozz
11 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
11 years ago

  • Component changed from General to Autosave
  • Type changed from defect (bug) to enhancement

#3 @azaozz
11 years ago

  • Milestone changed from Awaiting Review to 3.9
  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.