WordPress.org

Make WordPress Core

Ticket #18867: #18867.patch

File #18867.patch, 631 bytes (added by arena, 7 years ago)
  • wp-includes/capabilities.php

     
    664664                //Build $allcaps from role caps, overlay user's $caps
    665665                $this->allcaps = array();
    666666                foreach ( (array) $this->roles as $role ) {
    667                         $the_role =& $wp_roles->get_role( $role );
     667                        $the_role = $wp_roles->get_role( $role );
    668668                        $this->allcaps = array_merge( (array) $this->allcaps, (array) $the_role->capabilities );
    669669                }
    670670                $this->allcaps = array_merge( (array) $this->allcaps, (array) $this->caps );