[wp-trac] Re: [WordPress Trac] #8317: New installs: admin has user_level 0

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 25 13:14:49 GMT 2008


#8317: New installs: admin has user_level 0
---------------------+------------------------------------------------------
 Reporter:  Mr Pete  |        Owner:  jacobsantos
     Type:  defect   |       Status:  new        
 Priority:  low      |    Milestone:  2.8        
Component:  Upgrade  |      Version:  2.5        
 Severity:  major    |   Resolution:             
 Keywords:           |  
---------------------+------------------------------------------------------
Comment (by Mr Pete):

 I'm on the hunt... a nice little puzzle!

 Tracked down to this, so far. Not done yet...

 During install, in wp-admin\include\upgrade.php line 68,
 set_role('administrator') ultimately calls get_role_caps() in
 capabilities.php.

 PHP5: the result is an array with 'administrator' and all associated caps,
 including 'level_10'.

 PHP4: the result is an array with ONLY 'administrator' and nothing else.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8317#comment:18>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list