Search:
Login
Preferences
Help/Guide
About Trac
Wiki
Timeline
Roadmap
Browse Source
View Tickets
Search
Ticket Graph
Context Navigation
Back to Ticket #18237
Ticket #18237
: wp-fix-return-by-reference.patch
File wp-fix-return-by-reference.patch,
307 bytes
(added by elyobo,
22 months ago
)
get_roles patch
Line
1
Index: wp-includes/capabilities.php
2
===================================================================
3
208a209
4
> $res = null;
5
210,212c211,212
6
< return $this->role_objects[$role];
7
< else
8
< return null;
9
---
10
> $res =& $this->role_objects[$role];
11
> return $res;
Download in other formats:
Original Format