mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 18:13:00 +01:00
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.
|
* @param string $role Role name.
|
||||||
* @return object|null Null, if role does not exist. WP_Role object, if found.
|
* @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] ) )
|
if ( isset( $this->role_objects[$role] ) )
|
||||||
return $this->role_objects[$role];
|
return $this->role_objects[$role];
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user