0

WordPress with 3.9 version has refactored autosave feature #25272.

Is it still possible somehow to trigger autosave manually with JavaScript ?

Recently we could use autosave() function which is currently mocked with:

window.autosave = function(){};
BenMorel
  • 31,815
  • 47
  • 169
  • 296
hsz
  • 143,040
  • 58
  • 252
  • 308
  • http://stackoverflow.com/questions/931252/ajax-autosave-functionality – Ravi Patel Mar 13 '14 at 13:35
  • @ravipatel That's not the point - WP has autosave methods but they had been refactored and I cannot obtain, how to use it right now. – hsz Mar 13 '14 at 13:38

1 Answers1

1

Reading through the changelog of the ticket, it looks like they're still making their mind up about keeping the old function

window.autosave = function(){};

in the code for backwards compatibility. So many plugins currently use it that it would break so many websites with the update.

A patch was put in place but has not been added to the master [#25272.6.patch][1]

Best idea would be to ask within the ticket and hope that the backwards compatibility is kept in place until there is a surefire way documented.

Stewartside
  • 19,364
  • 12
  • 60
  • 76