diff --git a/wp-admin/edit-form-blocks.php b/wp-admin/edit-form-blocks.php index ac097f90b6..dea530e9fb 100644 --- a/wp-admin/edit-form-blocks.php +++ b/wp-admin/edit-form-blocks.php @@ -126,9 +126,10 @@ wp_add_inline_script( // Set Heartbeat interval to 10 seconds, used to refresh post locks. wp_add_inline_script( 'heartbeat', - 'if ( window.wp && window.wp.heartbeat ) { - window.wp.heartbeat.interval( 10 ); - }' + 'jQuery( function() { + wp.heartbeat.interval( 10 ); + } );', + 'after' ); /* diff --git a/wp-includes/version.php b/wp-includes/version.php index e88031962f..97d30daf0c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @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.