Administration: when hiding the login modal and unbind the auth check, also unbind the heartbeat auth check.

Props nofearinc.
Fixes #28962.


git-svn-id: https://develop.svn.wordpress.org/trunk@35568 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2015-11-07 16:21:27 +00:00
parent 7301c115aa
commit 58c8ffa66d

View File

@ -75,6 +75,7 @@
if ( typeof adminpage !== 'undefined' && ( adminpage === 'post-php' || adminpage === 'post-new-php' ) &&
typeof wp !== 'undefined' && wp.heartbeat ) {
$(document).off( 'heartbeat-tick.wp-auth-check' );
wp.heartbeat.connectNow();
}