Commit 6f61a7a7 authored by Andrew Ozz's avatar Andrew Ozz
Browse files

Remove unused arg from wp_auth_check(), see #27081.

Built from https://develop.svn.wordpress.org/trunk@27154


git-svn-id: https://core.svn.wordpress.org/trunk@27021 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent 572e3cce
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -294,8 +294,8 @@ 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_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 );
+1 −1
Original line number Diff line number Diff line
@@ -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;
}