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

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 21 11:28:56 GMT 2008

#5763: register_hook and register_new_user are broken
 Reporter:  whooami  |        Owner:  ryan    
     Type:  defect   |       Status:  reopened
 Priority:  normal   |    Milestone:  2.5     
Component:  General  |      Version:  2.5     
 Severity:  major    |   Resolution:          
 Keywords:  plugin   |  
Comment (by dlo):

 To add some precision:
 Running PHP 4.4.3, I had to revert to the solution given by whooami at the
 beginning of this ticket to be able to get back the errors triggered by my
 custom function hooked to 'register_form' action in the $error variable of
 the register_new_user function.

 Is this due to the fact that objects are passed by value in PHP 4 when
 they are passed by reference in PHP 5, thus making the [6821] change
 ineffective with some configuration? Nevertheless, it's a bit annoying to
 have to modify the wp-login.php file to get a plugin working. Ehh?

 Is it possible to consider the implementation of the whooami solution as a
 quick workaround for WordPress 2.5 ?

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

More information about the wp-trac mailing list