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
This commit is contained in:
ryan 2011-07-28 17:12:18 +00:00
parent ee12592231
commit 1bea107db4
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