[wp-trac] [WordPress Trac] #7784: Pass old user data to profile_update action

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 7 17:45:15 UTC 2011


#7784: Pass old user data to profile_update action
-------------------------------------+------------------------
 Reporter:  AaronCampbell            |       Owner:  anonymous
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  2.7
Component:  Administration           |     Version:
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------------

Comment (by aaroncampbell):

 Replying to [comment:4 crazycoders]:

 The problem is fixed.  You just have to specify how many parameters your
 function expects.  Try something like this:
 {{{
 function profile_update( $user_id, $old_info ) {
         // Both parameters as expected
 }
 add_action( 'profile_update', 'my_profile_update', null, 2 );
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/7784#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list