From c1e7325db6c0f20f41aa2691eed4a41668476330 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 12 Oct 2011 20:41:06 +0000 Subject: [PATCH] Avoid 'Only variables should be assigned by reference' warning. Props arena. fixes #18867 git-svn-id: http://svn.automattic.com/wordpress/trunk@18956 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/capabilities.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/capabilities.php b/wp-includes/capabilities.php index 310d2488fc..b93e2a8f53 100644 --- a/wp-includes/capabilities.php +++ b/wp-includes/capabilities.php @@ -665,7 +665,7 @@ class WP_User { //Build $allcaps from role caps, overlay user's $caps $this->allcaps = array(); foreach ( (array) $this->roles as $role ) { - $the_role =& $wp_roles->get_role( $role ); + $the_role = $wp_roles->get_role( $role ); $this->allcaps = array_merge( (array) $this->allcaps, (array) $the_role->capabilities ); } $this->allcaps = array_merge( (array) $this->allcaps, (array) $this->caps );