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

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 24 19:46:16 GMT 2008


#8317: New installs: admin has user_level 0
-------------------------------+--------------------------------------------
 Reporter:  Mr Pete            |        Owner:  westi   
     Type:  defect             |       Status:  reopened
 Priority:  normal             |    Milestone:          
Component:  General            |      Version:  2.5     
 Severity:  normal             |   Resolution:          
 Keywords:  reporter-feedback  |  
-------------------------------+--------------------------------------------
Comment (by ryan):

 It looks like WP_User::get_role_caps() isn't expanding the role into the
 full caps list (allcaps) during install.  Thus
 WP_User::update_user_level_from_caps() doesn't see the levels.  If someone
 wants to track this down further, go for it.

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


More information about the wp-trac mailing list