WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/25/2013 02:32:22 AM (8 years ago)
Author:
azaozz
Message:

Heartbeat API: add nopriv actions, add JS 'heartbeat-send' event, see #23216

File:
1 edited

Legend:

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

    r23401 r23481  
    22882288 */
    22892289function wp_heartbeat_settings( $settings ) {
    2290     $setting['nonce'] = wp_create_nonce( 'heartbeat-nonce' );
     2290    if ( is_user_logged_in() )
     2291        $setting['nonce'] = wp_create_nonce( 'heartbeat-nonce' );
     2292
    22912293    return $setting;
    22922294}
Note: See TracChangeset for help on using the changeset viewer.