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
This commit is contained in:
Ryan Boren 2011-07-28 17:12:18 +00:00
parent 40c8d3aff1
commit 58d9d5ea5d
1 changed files with 1 additions and 1 deletions

View File

@ -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