Ticket #18237: wp-fix-return-by-reference.svn.patch
File wp-fix-return-by-reference.svn.patch, 536 bytes (added by , 13 years ago) |
---|
-
wp-includes/capabilities.php
206 206 * @return object|null Null, if role does not exist. WP_Role object, if found. 207 207 */ 208 208 function &get_role( $role ) { 209 $res = null; 209 210 if ( isset( $this->role_objects[$role] ) ) 210 return $this->role_objects[$role]; 211 else 212 return null; 211 $res = $this->role_objects[$role]; 212 return $res; 213 213 } 214 214 215 215 /**