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:
parent
ee12592231
commit
1bea107db4
|
@ -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