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

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 7 16:49:19 UTC 2011


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

 * keywords:  has-patch needs-testing => has-patch needs-testing needs-patch
 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Problem still exists in version 3.1.

 The bug is related to the fact that "accepted_args" of "profile_update" is
 1 in all cases and thus never passes the "old_data" to the hooked
 functions.

 A clean way to do this would be to change line 486 to:
 call_user_func_array($the_['function'], $args);

 Instead of slicing the args array from 0 to X arguments.

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


More information about the wp-trac mailing list