[wp-trac] [WordPress Trac] #5763: register_hook and register_new_user are broke

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 4 15:18:20 GMT 2008

#5763: register_hook and register_new_user are broke
 Reporter:  whooami  |       Owner:  anonymous
     Type:  defect   |      Status:  new      
 Priority:  normal   |   Milestone:  2.5      
Component:  General  |     Version:           
 Severity:  normal   |    Keywords:  plugin   
 In the SVN, hooking into register_post with a plugin, doesnt work:

 function email_check() {
                 global $errors;
                 if ($user_email != "secret at secret.org")
                 $errors->add('icky_email', __('<strong>ERROR</strong>:
 your email blows.'));


 add_action('register_post', 'email_check');

 This was fixable this by adding the the global $errors to the function,

 function register_new_user($user_login, $user_email) {
         global $errors;

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

More information about the wp-trac mailing list