Domanda

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(){};
È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top