Make WordPress Core

Ticket #31964: before-unload-makeitwork2.patch

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

Really make it work this time... (forgot to pass on the returned value)

  • wp-admin/js/updates.js

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