From 58d9d5ea5d40ea553888529728d5ff5bce675358 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@18476 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 446264ec1e..86b3d85574 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