Make WordPress Core

Ticket #35018: 35018.patch

File 35018.patch, 801 bytes (added by walbo, 8 years ago)
  • src/wp-includes/js/wp-auth-check.js

     
    7676                // When on the Edit Post screen, speed up heartbeat after the user logs in to quickly refresh nonces
    7777                if ( typeof adminpage !== 'undefined' && ( adminpage === 'post-php' || adminpage === 'post-new-php' ) &&
    7878                        typeof wp !== 'undefined' && wp.heartbeat ) {
    79 
    80                         $(document).off( 'heartbeat-tick.wp-auth-check' );
    8179                        wp.heartbeat.connectNow();
    8280                }
    8381
     
    111109                wrap = $('#wp-auth-check-wrap');
    112110                wrap.find('.wp-auth-check-close').on( 'click', function() {
    113111                        hide();
     112                        $( document ).off( 'heartbeat-tick.wp-auth-check' );
    114113                });
    115114        });
    116115