From 4951bdc96466f0701d052e571493a20799f0b6cc Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Sun, 9 Feb 2014 22:33:56 +0000 Subject: [PATCH] Remove unused arg from wp_auth_check(), see #27081. git-svn-id: https://develop.svn.wordpress.org/trunk@27154 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/default-filters.php | 6 +++--- src/wp-includes/functions.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/default-filters.php b/src/wp-includes/default-filters.php index 083ca1fe44..88a92d018e 100644 --- a/src/wp-includes/default-filters.php +++ b/src/wp-includes/default-filters.php @@ -293,9 +293,9 @@ 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_send', 'wp_auth_check', 10, 2 ); -add_filter( 'heartbeat_nopriv_send', '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 ); diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index ae0ec09d17..0a80bdf414 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -4095,7 +4095,7 @@ function wp_auth_check_html() { * * @since 3.6.0 */ -function wp_auth_check( $response, $data ) { +function wp_auth_check( $response ) { $response['wp-auth-check'] = is_user_logged_in() && empty( $GLOBALS['login_grace_period'] ); return $response; }