From 82fd123c916a5d012413c618c203c7f537e60247 Mon Sep 17 00:00:00 2001 From: ryan 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: http://svn.automattic.com/wordpress/trunk@7692 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 2456b46d1..63b5ec500 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;