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

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 7 23:58:36 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:                |
--------------------------+-----------------------------

Comment (by Denis-de-Bernardy):

 Who would ever want to been nicknamed zero? :-)

 Joke aside, this is related to our use of empty() instead of isset() all
 over the place. (Best I'm aware, empty('0') returns true.) Similar issues
 likely apply for posts, terms, options, etc. Suggesting that we close this
 as maybelater, considering the amount of potential changes...

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


More information about the wp-trac mailing list