Make WordPress Core

Ticket #18237: wp-fix-return-by-reference.patch

File wp-fix-return-by-reference.patch, 307 bytes (added by elyobo, 13 years ago)

get_roles patch

Line 
1Index: wp-includes/capabilities.php
2===================================================================
3208a209
4>       $res = null;
5210,212c211,212
6<           return $this->role_objects[$role];
7<       else
8<           return null;
9---
10>           $res =& $this->role_objects[$role];
11>       return $res;