[wp-trac] [WordPress Trac] #16484: Attempting to add user with username "0" gives fatal error

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 8 02:50:03 UTC 2011


#16484: Attempting to add user with username "0" gives fatal error
--------------------------+-----------------------------
 Reporter:  markjaquith   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  lowest        |   Milestone:  Future Release
Component:  Users         |     Version:  3.1
 Severity:  minor         |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * keywords:   => has-patch


Comment:

 It seems that it's only a single line which prevents user creation in this
 case.

 However if that user is a Contributor or above, I get a notice in
 `wp_dropdown_users()`:
 {{{
 Notice: Undefined property: stdClass::$user_login in ...wp-
 includes/user.php on line 1019
 }}}
 Which is also addressed in the patch. But there might be other issues wich
 such username as well.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16484#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list