[wp-trac] [WordPress Trac] #16731: Unchecked array_merge() returns NULL in wp_update_user();

WordPress Trac noreply at wordpress.org
Fri Feb 1 05:20:31 UTC 2013


#16731: Unchecked array_merge() returns NULL in wp_update_user();
--------------------------+------------------------------
 Reporter:  milan.chotai  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Users         |     Version:  3.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by cartpauj):

 Posting here since #17009 was closed again. Thanks.

 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/16731#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list