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. git-svn-id: https://develop.svn.wordpress.org/trunk@27153 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3fce77b44d
commit
e1f6ab1ea9
@ -294,8 +294,8 @@ add_filter( 'heartbeat_settings', 'wp_heartbeat_settings' );
|
|||||||
|
|
||||||
// Check if the user is logged out
|
// Check if the user is logged out
|
||||||
add_action( 'admin_enqueue_scripts', 'wp_auth_check_load' );
|
add_action( 'admin_enqueue_scripts', 'wp_auth_check_load' );
|
||||||
add_filter( 'heartbeat_received', 'wp_auth_check', 10, 2 );
|
add_filter( 'heartbeat_send', 'wp_auth_check', 10, 2 );
|
||||||
add_filter( 'heartbeat_nopriv_received', 'wp_auth_check', 10, 2 );
|
add_filter( 'heartbeat_nopriv_send', 'wp_auth_check', 10, 2 );
|
||||||
|
|
||||||
// Default authentication filters
|
// Default authentication filters
|
||||||
add_filter( 'authenticate', 'wp_authenticate_username_password', 20, 3 );
|
add_filter( 'authenticate', 'wp_authenticate_username_password', 20, 3 );
|
||||||
|
Loading…
Reference in New Issue
Block a user