[wp-testers] wp-login.php

an at horttcore.de an at horttcore.de
Sun Mar 16 14:47:05 GMT 2008


Yesterday I'd checked if my plugins still work with WP 2.5,
sadly the answer is no. So I had a look at the wp-login page.

The hook 'wp_authenticate' is still there but I'm unable to return the  
error.
Anyone got a clue, if it is my fault or WPs? Here is the function I  
have attached to the hook.

Function cur_authenticate(){
	global  $user;
			
		if (!is_authenticated()) {
			$error = '<strong>ERROR:</strong> Your account has to be confirmed  
by an administrator before you can login';
			$user = new WP_Error();
			$user->add('error',$error);
			return $user;
		}
}




More information about the wp-testers mailing list