WordPress.org

Make WordPress Core

Changeset 18476


Ignore:
Timestamp:
07/28/2011 05:12:18 PM (7 years ago)
Author:
ryan
Message:

Remove return by ref from get_role(). Props scribu, elyobo. fixes #18237

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/capabilities.php

    r18445 r18476  
    206206     * @return object|null Null, if role does not exist. WP_Role object, if found.
    207207     */
    208     function &get_role( $role ) {
     208    function get_role( $role ) {
    209209        if ( isset( $this->role_objects[$role] ) )
    210210            return $this->role_objects[$role];
Note: See TracChangeset for help on using the changeset viewer.