]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/default-filters.php
WordPress 3.9-scripts
[autoinstalls/wordpress.git] / wp-includes / default-filters.php
index b6c7527553b1de3dca9bd77e32c99cc3c5e22ab7..a027155002ec348f7b8a7b8afc61d65f44cf16f9 100644 (file)
@@ -293,12 +293,14 @@ add_filter( 'default_option_embed_autourls', '__return_true' );
 add_filter( 'heartbeat_settings', 'wp_heartbeat_settings' );
 
 // Check if the user is logged out
-add_action( 'admin_enqueue_scripts',     'wp_auth_check_load'   );
-add_filter( 'heartbeat_received',        'wp_auth_check', 10, 2 );
-add_filter( 'heartbeat_nopriv_received', 'wp_auth_check', 10, 2 );
+add_action( 'admin_enqueue_scripts', 'wp_auth_check_load' );
+add_filter( 'heartbeat_send',        'wp_auth_check' );
+add_filter( 'heartbeat_nopriv_send', 'wp_auth_check' );
 
 // Default authentication filters
 add_filter( 'authenticate', 'wp_authenticate_username_password',  20, 3 );
 add_filter( 'authenticate', 'wp_authenticate_spam_check',         99    );
+add_filter( 'determine_current_user', 'wp_validate_auth_cookie'          );
+add_filter( 'determine_current_user', 'wp_validate_logged_in_cookie', 20 );
 
 unset($filter, $action);