WordPress.org

Make WordPress Core

Changeset 27153


Ignore:
Timestamp:
02/09/2014 10:27:57 PM (8 years ago)
Author:
nacin
Message:

Run wp_auth_check on every heartbeat tick.

wp_heartbeat_received only runs when data is sent. We want to always pass this data back, though.

fixes #27081.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r26644 r27153  
    295295// Check if the user is logged out
    296296add_action( 'admin_enqueue_scripts',     'wp_auth_check_load'   );
    297 add_filter( 'heartbeat_received',        'wp_auth_check', 10, 2 );
    298 add_filter( 'heartbeat_nopriv_received', 'wp_auth_check', 10, 2 );
     297add_filter( 'heartbeat_send',            'wp_auth_check', 10, 2 );
     298add_filter( 'heartbeat_nopriv_send',    'wp_auth_check', 10, 2 );
    299299
    300300// Default authentication filters
Note: See TracChangeset for help on using the changeset viewer.