[wp-trac] [WordPress Trac] #27377: profile_update action with old_user_data should include the additional_user_keys data?
WordPress Trac
noreply at wordpress.org
Wed Mar 12 14:41:53 UTC 2014
#27377: profile_update action with old_user_data should include the
additional_user_keys data?
----------------------------+-----------------------------
Reporter: joostdekeijzer | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: trunk
Severity: normal | Keywords:
Focuses: administration |
----------------------------+-----------------------------
Currently, when a users profile is updated, the `profile_update` action is
called with the $user_id and $old_user_data as parameters.
$old_user_data is an object containing only the basic WP_User fields, but
none of the additional user keys (first_name, last_name, etc. are not part
of this object)
It would be nice if $old_user_data actually contained all (WordPress
defined) userfields.
That way, one could for example write a plugin to email changes to an
administrator, but only when there actually was a change!
Relevant code is in `wp-includes/user.php`, the `wp_insert_user()` method.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27377>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list