From 58c8ffa66d73429ea266c80556a646a995111108 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sat, 7 Nov 2015 16:21:27 +0000 Subject: [PATCH] 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 --- src/wp-includes/js/wp-auth-check.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/js/wp-auth-check.js b/src/wp-includes/js/wp-auth-check.js index 4c0b71d9c2..8b78de953f 100644 --- a/src/wp-includes/js/wp-auth-check.js +++ b/src/wp-includes/js/wp-auth-check.js @@ -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(); }