Ticket #25272: 25272.6.patch
File 25272.6.patch, 740 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/js/autosave.js
1 1 /* global tinymce, wpCookies, autosaveL10n, switchEditors */ 2 // Back-compat: prevent fatal errors 3 window.autosave = function(){}; 2 // Back-compat 3 window.autosave = function() { 4 return true; 5 }; 4 6 5 7 ( function( $, window ) { 6 8 function autosave() { … … 489 491 function save() { 490 492 var postData, compareString; 491 493 492 if ( isSuspended || _blockSave ) { 494 // window.autosave() used for back-compat 495 if ( isSuspended || _blockSave || ! window.autosave() ) { 493 496 return false; 494 497 } 495 498