WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/29/2013 06:15:25 AM (7 years ago)
Author:
azaozz
Message:

Heartbeat API: first run, see #23216

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/script-loader.php

    r23339 r23355  
    108108
    109109    $scripts->add( 'autosave', "/wp-includes/js/autosave$suffix.js", array('schedule', 'wp-ajax-response'), false, 1 );
     110   
     111    $scripts->add( 'heartbeat', "/wp-includes/js/heartbeat$suffix.js", array('jquery'), false, 1 );
     112    did_action( 'init' ) && $scripts->localize( 'heartbeat', 'heartbeatSettings',
     113        apply_filters( 'heartbeat_settings', array() )
     114    );
    110115
    111116    $scripts->add( 'wp-lists', "/wp-includes/js/wp-lists$suffix.js", array( 'wp-ajax-response', 'jquery-color' ), false, 1 );
     
    372377        $scripts->add( 'postbox', "/wp-admin/js/postbox$suffix.js", array('jquery-ui-sortable'), false, 1 );
    373378
    374         $scripts->add( 'post', "/wp-admin/js/post$suffix.js", array('suggest', 'wp-lists', 'postbox'), false, 1 );
     379        $scripts->add( 'post', "/wp-admin/js/post$suffix.js", array('suggest', 'wp-lists', 'postbox', 'heartbeat'), false, 1 );
    375380        did_action( 'init' ) && $scripts->localize( 'post', 'postL10n', array(
    376381            'ok' => __('OK'),
Note: See TracChangeset for help on using the changeset viewer.