WordPress.org

Make WordPress Core

Changeset 8969


Ignore:
Timestamp:
09/24/08 16:05:21 (6 years ago)
Author:
ryan
Message:

Pass old user data to profile_update action. Props AaronCampbell. fixes #7784

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/registration.php

    r8782 r8969  
    110110        $ID = (int) $ID; 
    111111        $update = true; 
     112        $old_user_data = get_userdata($ID); 
    112113    } else { 
    113114        $update = false; 
     
    200201 
    201202    if ( $update ) 
    202         do_action('profile_update', $user_id); 
     203        do_action('profile_update', $user_id, $old_user_data); 
    203204    else 
    204205        do_action('user_register', $user_id); 
Note: See TracChangeset for help on using the changeset viewer.