WordPress.org

Make WordPress Core

Ticket #18237: 18237.diff

File 18237.diff, 501 bytes (added by scribu, 7 years ago)
  • wp-includes/capabilities.php

     
    205205         * @param string $role Role name.
    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];
    211211                else