From 1bea107db4cbedd5a5794bdeb0e0749096d9d048 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 28 Jul 2011 17:12:18 +0000 Subject: [PATCH] Remove return by ref from get_role(). Props scribu, elyobo. fixes #18237 git-svn-id: http://svn.automattic.com/wordpress/trunk@18476 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 446264ec1..86b3d8557 100644 --- a/wp-includes/capabilities.php +++ b/wp-includes/capabilities.php @@ -205,7 +205,7 @@ class WP_Roles { * @param string $role Role name. * @return object|null Null, if role does not exist. WP_Role object, if found. */ - function &get_role( $role ) { + function get_role( $role ) { if ( isset( $this->role_objects[$role] ) ) return $this->role_objects[$role]; else