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:
parent
4e75adda05
commit
4df303ff76
|
@ -225,7 +225,7 @@ window.wp = window.wp || {};
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if ( ! hasFocus ) {
|
if ( ! hasFocus ) {
|
||||||
t = 120000; // 2 min
|
t = 100000; // 100 sec. Post locks expire after 120 sec.
|
||||||
} else if ( countdown > 0 && tempInterval ) {
|
} else if ( countdown > 0 && tempInterval ) {
|
||||||
t = tempInterval;
|
t = tempInterval;
|
||||||
countdown--;
|
countdown--;
|
||||||
|
|
Loading…
Reference in New Issue