Add file header to heartbeat.js, props DrewAPicture, fixes #24723

git-svn-id: https://develop.svn.wordpress.org/trunk@24654 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2013-07-11 00:35:52 +00:00
parent d653baf6da
commit 73697f9577

View File

@@ -1,5 +1,21 @@
/**
* Heartbeat API
*
* Heartbeat is a simple server polling API that sends XHR requests to
* the server every 15 seconds and triggers events (or callbacks) upon
* receiving data. Currently these 'ticks' handle transports for post locking,
* login-expiration warnings, and related tasks while a user is logged in.
*
* Available filters in ajax-actions.php:
* - heartbeat_received
* - heartbeat_send
* - heartbeat_tick
* - heartbeat_nopriv_received
* - heartbeat_nopriv_send
* - heartbeat_nopriv_tick
* @see wp_ajax_nopriv_heartbeat(), wp_ajax_heartbeat()
*
* @since 3.6.0
*/
// Ensure the global `wp` object exists.