[wp-trac] Re: [WordPress Trac] #8317: New installs: admin has
user_level 0
WordPress Trac
wp-trac at lists.automattic.com
Tue Nov 25 05:00:44 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 DD32):
I just tried to trace the bug, Utterly impossible, Seems like
WP_User::$caps isnt being populated at all, and i couldnt work out why
If i was to replace:
http://trac.wordpress.org/browser/trunk/wp-includes/capabilities.php#L107
{{{
$this->roles = get_option( $this->role_key );
}}}
with a var_export() a working role key, Everything would work as expected,
So my thinking is that the WP_Roles class might not be picking up the
role/capabilities list correctly.
--
Ticket URL: <http://trac.wordpress.org/ticket/8317#comment:17>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list