[wp-trac] [WordPress Trac] #17009: wp_update_user not creating a new user if not passed an ID
WordPress Trac
noreply at wordpress.org
Fri Feb 1 04:47:24 UTC 2013
#17009: wp_update_user not creating a new user if not passed an ID
--------------------------+-----------------------
Reporter: casben79 | Owner: casben79
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: Users | Version:
Severity: major | Resolution:
Keywords: needs-patch |
--------------------------+-----------------------
Changes (by cartpauj):
* status: closed => reopened
* severity: normal => major
* cc: cartpauj@… (added)
* version: 3.1 =>
* keywords: has-patch => needs-patch
* resolution: duplicate =>
Comment:
This is still a problem.
http://core.trac.wordpress.org/browser/tags/3.5.1/wp-
includes/user.php#L1455
That line is throwing an Exception, which prevents wp_insert_user from
ever being called. The function description clearly states it will insert
a new user if ID is not set.
So I propose that either wp_insert_user get stripped completely out of
wp_update_user or wp_update_user needs fixed to allow wp_insert_user to
actually get used before the Exception is thrown.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17009#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list