From 175064637f97161909556dbf246cf77d78900e9f Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sat, 7 Nov 2015 16:22:25 +0000 Subject: [PATCH] Administration: when hiding the login modal and unbind the auth check, also unbind the heartbeat auth check. Props nofearinc. Fixes #28962. Built from https://develop.svn.wordpress.org/trunk@35568 git-svn-id: http://core.svn.wordpress.org/trunk@35532 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/wp-auth-check.js | 1 + wp-includes/js/wp-auth-check.min.js | 2 +- wp-includes/version.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-includes/js/wp-auth-check.js b/wp-includes/js/wp-auth-check.js index 4c0b71d9c2..8b78de953f 100644 --- a/wp-includes/js/wp-auth-check.js +++ b/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(); } diff --git a/wp-includes/js/wp-auth-check.min.js b/wp-includes/js/wp-auth-check.min.js index 41a130804d..1ac98fd6b4 100644 --- a/wp-includes/js/wp-auth-check.min.js +++ b/wp-includes/js/wp-auth-check.min.js @@ -1 +1 @@ -!function(a){function b(){var b,d=a("#wp-auth-check"),f=a("#wp-auth-check-form"),g=e.find(".wp-auth-fallback-expired"),h=!1;f.length&&(a(window).on("beforeunload.wp-auth-check",function(a){a.originalEvent.returnValue=window.authcheckL10n.beforeunload}),b=a('