[wp-trac] [WordPress Trac] #14046: WP_User constructor not working as expected if called with 2 args (was: 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
Fri Jun 25 08:29:14 UTC 2010


#14046: WP_User constructor not working as expected if called with 2 args
-----------------------------+----------------------------------------------
 Reporter:  francescolaffi   |       Owner:                  
     Type:  defect (bug)     |      Status:  new             
 Priority:  high             |   Milestone:  3.0.1           
Component:  Role/Capability  |     Version:  3.0             
 Severity:  critical         |    Keywords:  has-patch commit
-----------------------------+----------------------------------------------
Changes (by nacin):

  * keywords:  dev-feedback has-patch => has-patch commit
  * priority:  normal => high
  * severity:  normal => critical
  * milestone:  Unassigned => 3.0.1


Comment:

 We need to fix is_site_admin(). is_super_admin('admin') returns true,
 is_site_admin('admin') returns false, that's really bad for MU back
 compat.

 I like adding empty() to WP_User.

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


More information about the wp-trac mailing list