From 73cdb808d1645d1d8834561f2e7b1b83853b51f5 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 16 Apr 2008 04:49:19 +0000 Subject: [PATCH] Relocate wp_authenticate action to fix back compat and make it more useful. fixes #6675 for trunk git-svn-id: https://develop.svn.wordpress.org/trunk@7692 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/user.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/user.php b/wp-includes/user.php index 2456b46d13..63b5ec500d 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -19,6 +19,8 @@ function wp_signon( $credentials = '' ) { else $credentials['remember'] = false; + do_action_ref_array('wp_authenticate', array(&$credentials['user_login'], &$credentials['user_password'])); + // If no credential info provided, check cookie. if ( empty($credentials['user_login']) && empty($credentials['user_password']) ) { $user = wp_validate_auth_cookie(); @@ -42,8 +44,6 @@ function wp_signon( $credentials = '' ) { return $error; } - do_action_ref_array('wp_authenticate', array(&$credentials['user_login'], &$credentials['user_password'])); - $user = wp_authenticate($credentials['user_login'], $credentials['user_password']); if ( is_wp_error($user) ) return $user;