WordPress.org

Make WordPress Core

Ticket #15069: autosave-patch.patch

File autosave-patch.patch, 681 bytes (added by karevn, 4 years ago)

The patch that fixes the problem for wp 3.0.1

  • wp-includes/js/autosave.dev.js

     
    197197autosave = function() { 
    198198        // (bool) is rich editor enabled and active 
    199199        blockSave = true; 
    200         var rich = (typeof tinyMCE != "undefined") && tinyMCE.activeEditor && !tinyMCE.activeEditor.isHidden(), post_data, doAutoSave, ed, origStatus, successCallback; 
     200        var rich = (typeof tinyMCE != "undefined") && tinyMCE.get('content') && !tinyMCE.get('content').isHidden(), post_data, doAutoSave, ed, origStatus, successCallback; 
    201201 
    202202        autosave_disable_buttons(); 
    203203