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:
parent
40c8d3aff1
commit
58d9d5ea5d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user