WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/30/2013 11:32:12 PM (8 years ago)
Author:
azaozz
Message:

Heartbeat: improve setting the errorstate, add ajaxurl to the settings object when loading on the front-end, some code cleanup, see #23216

File:
1 edited

Legend:

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

    r23801 r23882  
    23342334 */
    23352335function wp_heartbeat_settings( $settings ) {
     2336    if ( ! is_admin() )
     2337        $settings['ajaxurl'] = admin_url( 'admin-ajax.php', 'relative' );
     2338
    23362339    if ( is_user_logged_in() )
    23372340        $settings['nonce'] = wp_create_nonce( 'heartbeat-nonce' );
Note: See TracChangeset for help on using the changeset viewer.