Make WordPress Core

Changeset 59092


Ignore:
Timestamp:
09/25/2024 08:49:21 PM (5 months ago)
Author:
azaozz
Message:

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

Props peterwilsoncc, azaozz.
Fixes #61960.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-blocks.php

    r59078 r59092  
    127127wp_add_inline_script(
    128128    'heartbeat',
    129     'if ( window.wp && window.wp.heartbeat ) {
    130         window.wp.heartbeat.interval( 10 );
    131     }'
     129    'jQuery( function() {
     130        wp.heartbeat.interval( 10 );
     131    } );',
     132    'after'
    132133);
    133134
Note: See TracChangeset for help on using the changeset viewer.