Explicitly return ref for the sake of PHP4. Fixes user_level being empty when installing on PHP4. Props Mr Pete. fixes #8317 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@10200 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -533,7 +533,7 @@ class WP_User {
|
||||
//Build $allcaps from role caps, overlay user's $caps
|
||||
$this->allcaps = array();
|
||||
foreach ( (array) $this->roles as $role ) {
|
||||
$role = $wp_roles->get_role( $role );
|
||||
$role =& $wp_roles->get_role( $role );
|
||||
$this->allcaps = array_merge( $this->allcaps, $role->capabilities );
|
||||
}
|
||||
$this->allcaps = array_merge( $this->allcaps, $this->caps );
|
||||
|
||||
Reference in New Issue
Block a user