Make WordPress Core

Ticket #31964: before-unload-makeitwork.patch

File before-unload-makeitwork.patch, 363 bytes (added by DavidAnderson, 9 years ago)

Patch against current trunk to make it work

  • wp-admin/js/updates.js

    old new  
    547547
    548548        } );
    549549
    550         $( window ).on( 'beforeunload', wp.updates.beforeunload );
     550        $( window ).on( 'beforeunload', function() { wp.updates.beforeunload(); } );
    551551
    552552})( jQuery, window.wp, window.pagenow, window.ajaxurl );