[wp-trac] [WordPress Trac] #6692: Handling of errors in wp-login.php

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 12 07:02:49 GMT 2008


#6692: Handling of errors in wp-login.php
---------------------+------------------------------------------------------
 Reporter:  dtc      |       Owner:  anonymous       
     Type:  defect   |      Status:  new             
 Priority:  high     |   Milestone:  2.5.1           
Component:  General  |     Version:  2.5             
 Severity:  normal   |    Keywords:  errors, wp-login
---------------------+------------------------------------------------------
 Hello,

 There has been some changes in the way errors are handled in wp-login.php
 : in WP 2.3.x, there was a global array defined ($errors[]) which could be
 interacted with via plugins :

 {{{
 $errors['user_email'] = __('<strong>ERROR</strong>: The email address
 is not correct.');
 }}}


 With WP2.5, plugins can't seem to add to $errors->add(). I think I've
 tried every possibility and I cannot make out why in a plugin
 something like :

 {{{
 $errors->add('invalid_email', __('<strong>ERROR</strong>: The email
 address is not correct.'));
 }}}

 does not work. I should say that it is part of a function that is inserted
 through add_action('register_post').

 Add that line make wp-login.php go blank.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6692>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list