Heartbeat API: first run, see #23216

git-svn-id: https://develop.svn.wordpress.org/trunk@23355 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2013-01-29 06:15:25 +00:00
parent a38f0e16c5
commit 5edc6b2711
6 changed files with 232 additions and 2 deletions
+15
View File
@@ -2284,3 +2284,18 @@ function __checked_selected_helper( $helper, $current, $echo, $type ) {
return $result;
}
/**
* Default settings for heartbeat
*
* Outputs the nonce used in the heartbeat XHR
*
* @since 3.6.0
*
* @param array $settings
* @return array $settings
*/
function wp_heartbeat_settings( $settings ) {
$setting['nonce'] = wp_create_nonce( 'heartbeat-nonce' );
return $setting;
}