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;
                }
}


_______________________________________________
wp-testers mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-testers

Reply via email to