[wp-trac] [WordPress Trac] #17009: wp_update_user not creating a new user if not passed an ID

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 31 12:58:33 UTC 2011


#17009: wp_update_user not creating a new user if not passed an ID
--------------------------+-----------------------------
 Reporter:  casben79      |      Owner:  casben79
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Users         |    Version:  3.1
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------------
 the function wp_update_user() is not creating a new user if not passed an
 ID.

 Bugging out as get_object_vars() expects an object but being passed false
 as no user ID was passed to the function

 Upon further investigation was also hashing the password passed to it,
 when the function it calls ( wp_insert_user() ) does this again which has
 resulted in an incorrect password error.

 I have created a patch for this, and in the process also cleaned up an
 unnecessary if( isset(...) ) statement at the end of the function as well
 as some missing whitespace.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17009>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list