WordPress.org

Make WordPress Core

Ticket #23216: 23216-cleanup-fixes.diff

File 23216-cleanup-fixes.diff, 549 bytes (added by carldanley, 5 years ago)
  • wp-includes/js/autosave.js

     
    242242
    243243function autosave_enable_buttons() {
    244244        jQuery(document).trigger('autosave-enable-buttons');
    245         if ( ! wp.heartbeat.connectionLost ) {
     245        if ( wp.heartbeat.hasActiveConnection() ) {
    246246                // delay that a bit to avoid some rare collisions while the DOM is being updated.
    247247                setTimeout(function(){
    248248                        var parent = jQuery('#submitpost');