Heartbeat: Reduce the heartbeat from 120 sec to 100 sec when the window doesn't have the focus, to be shorter than the post lock expiration window.

props azaozz.
fixes #24894.



git-svn-id: http://core.svn.wordpress.org/trunk@24908 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-07-31 03:23:22 +00:00
parent 4e75adda05
commit 4df303ff76
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ window.wp = window.wp || {};
return;
if ( ! hasFocus ) {
t = 120000; // 2 min
t = 100000; // 100 sec. Post locks expire after 120 sec.
} else if ( countdown > 0 && tempInterval ) {
t = tempInterval;
countdown--;