[wp-trac] [WordPress Trac] #29120: user.php inconsistency between _get_additional_user_keys() and wp_insert_user() regarding first_name and last_name

WordPress Trac noreply at wordpress.org
Tue Aug 5 17:33:42 UTC 2014


#29120: user.php inconsistency between _get_additional_user_keys() and
wp_insert_user() regarding first_name and last_name
------------------------------------+-----------------------------
 Reporter:  martha_camellia         |      Owner:
     Type:  defect (bug)            |     Status:  new
 Priority:  normal                  |  Milestone:  Awaiting Review
Component:  Login and Registration  |    Version:  3.9.1
 Severity:  normal                  |   Keywords:
  Focuses:                          |
------------------------------------+-----------------------------
 file: wp/wp-includes/user.php

 Found while trying to use user_register action on new account creation.

 According to the code comment, function _get_additional_user_keys()  does
 this: "Return a list of meta keys that wp_insert_user() is supposed to
 set."  Included in it's return data are "first_name" and "last_name".
 However, the wp_insert_user() function does not set those values, although
 it does use them.

 I am not sure whether wp_insert_user() is supposed to set first_name and
 last_name or not.  Wish it would :-)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29120>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list