[wp-trac] [WordPress Trac] #14046: WP_User constructor not working as expected if called with 2 args or its phpdoc is not clear

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 22 17:11:09 UTC 2010


#14046: WP_User constructor not working as expected if called with 2 args or its
phpdoc is not clear
-----------------------------+----------------------------------------------
 Reporter:  francescolaffi   |       Owner:                        
     Type:  defect (bug)     |      Status:  new                   
 Priority:  normal           |   Milestone:  Unassigned            
Component:  Role/Capability  |     Version:  3.0                   
 Severity:  normal           |    Keywords:  dev-feedback has-patch
-----------------------------+----------------------------------------------

Comment(by francescolaffi):

 Sorry for wrong formatting, here is the example in the second paragraph
 with correct line ends:

 {{{
 e.g.:
 I have the user with username 'foobar' and user id 14
 new WP_User(14) works
 new WP_User(14,'foobar') works
 new WP_User('foobar') works
 new WP_User(0,'foobar') works
 new WP_User(null,'foobar') doesn't work
 new WP_User(false,'foobar') doesn't work
 }}}

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


More information about the wp-trac mailing list