[wp-trac] Re: [WordPress Trac] #9302: Add hook for update profile
    WordPress Trac 
    wp-trac at lists.automattic.com
       
    Sat May 23 21:36:47 GMT 2009
    
    
  
#9302: Add hook for update profile
--------------------------+-------------------------------------------------
 Reporter:  Cimmo         |        Owner:          
     Type:  enhancement   |       Status:  reopened
 Priority:  normal        |    Milestone:  2.8     
Component:  Users         |      Version:  2.8     
 Severity:  normal        |   Resolution:          
 Keywords:  profile hook  |  
--------------------------+-------------------------------------------------
Changes (by westi):
  * keywords:  profile hook dev-feedback => profile hook
Comment:
 Well in PHP5 it will get passed by reference here.  But I believe in  PHP4
 it will not!
 So currently this works for PHP5 and not PHP4 I suspect (no PHP4 test
 setup here at the moment)
 So yeah we need to use references here otherwise the hooked function can't
 change what's in the $errors in all PHP versions.
 As for passing in the user_login and user_email I'm not sure why they
 should be treated as special here.  Why not just pass in the currently
 processed $user object?
-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9302#comment:17>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
    
    
More information about the wp-trac
mailing list