Make WordPress Core

Changeset 18956


Ignore:
Timestamp:
10/12/2011 08:41:06 PM (13 years ago)
Author:
ryan
Message:

Avoid 'Only variables should be assigned by reference' warning. Props arena. fixes #18867

File:
1 edited

Legend:

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

    r18909 r18956  
    666666        $this->allcaps = array();
    667667        foreach ( (array) $this->roles as $role ) {
    668             $the_role =& $wp_roles->get_role( $role );
     668            $the_role = $wp_roles->get_role( $role );
    669669            $this->allcaps = array_merge( (array) $this->allcaps, (array) $the_role->capabilities );
    670670        }
Note: See TracChangeset for help on using the changeset viewer.