]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/heartbeat.js
WordPress 4.7.2-scripts
[autoinstalls/wordpress.git] / wp-includes / js / heartbeat.js
index b4c83167808fc02a94cbda6db053aed4399b8970..6c5e8d151b71bb0650558e077d1ac7fdb5a3ac9c 100644 (file)
                                // Needed for some hosts that cannot handle frequent requests and the user may exceed the allocated server CPU time, etc.
                                // The minimal interval can be up to 600 sec. however setting it to longer than 120 sec. will limit or disable
                                // some of the functionality (like post locks).
-                               // Once set at initialization, minimalInterval cannot be changed/overriden.
+                               // Once set at initialization, minimalInterval cannot be changed/overridden.
                                if ( options.minimalInterval ) {
                                        options.minimalInterval = parseInt( options.minimalInterval, 10 );
                                        settings.minimalInterval = options.minimalInterval > 0 && options.minimalInterval <= 600 ? options.minimalInterval * 1000 : 0;
                                        settings.mainInterval = settings.minimalInterval;
                                }
 
-                               // 'screenId' can be added from settings on the front-end where the JS global 'pagenow' is not set
+                               // 'screenId' can be added from settings on the front end where the JS global 'pagenow' is not set
                                if ( ! settings.screenId ) {
                                        settings.screenId = options.screenId || 'front';
                                }
 
                                if ( response.nonces_expired ) {
                                        $document.trigger( 'heartbeat-nonces-expired' );
-                                       return;
                                }
 
                                // Change the interval from PHP