mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
More cap migration.
git-svn-id: https://develop.svn.wordpress.org/trunk@2714 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -123,6 +123,8 @@ class WP_User {
|
||||
$this->id = $this->data->ID;
|
||||
$this->cap_key = $table_prefix . 'capabilities';
|
||||
$this->caps = &$this->data->{$this->cap_key};
|
||||
if ( ! is_array($this->caps) )
|
||||
$this->caps = array();
|
||||
$this->get_role_caps();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user