WordPress.org

Make WordPress Core


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

Heartbeat API: first run, see #23216

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r22634 r23355  
    22852285    return $result;
    22862286}
     2287
     2288/**
     2289 * Default settings for heartbeat
     2290 *
     2291 * Outputs the nonce used in the heartbeat XHR
     2292 *
     2293 * @since 3.6.0
     2294 *
     2295 * @param array $settings
     2296 * @return array $settings
     2297 */
     2298function wp_heartbeat_settings( $settings ) {
     2299    $setting['nonce'] = wp_create_nonce( 'heartbeat-nonce' );
     2300    return $setting;
     2301}
Note: See TracChangeset for help on using the changeset viewer.