Administration: Fix increasing of the frequency of Heartbeat API requests.

Props peterwilsoncc, azaozz.
Fixes #61960.
Built from https://develop.svn.wordpress.org/trunk@59092


git-svn-id: http://core.svn.wordpress.org/trunk@58488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2024-09-25 20:51:14 +00:00
parent 0f1eaa6ca3
commit a8af90bcd1
2 changed files with 5 additions and 4 deletions

View File

@ -126,9 +126,10 @@ wp_add_inline_script(
// Set Heartbeat interval to 10 seconds, used to refresh post locks. // Set Heartbeat interval to 10 seconds, used to refresh post locks.
wp_add_inline_script( wp_add_inline_script(
'heartbeat', 'heartbeat',
'if ( window.wp && window.wp.heartbeat ) { 'jQuery( function() {
window.wp.heartbeat.interval( 10 ); wp.heartbeat.interval( 10 );
}' } );',
'after'
); );
/* /*

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.7-alpha-59091'; $wp_version = '6.7-alpha-59092';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.