Make WordPress Core


Ignore:
Timestamp:
12/12/2008 08:47:18 PM (16 years ago)
Author:
ryan
Message:

Explicitly return ref for the sake of PHP4. Fixes user_level being empty when installing on PHP4. Props Mr Pete. fixes #8317 for trunk

File:
1 edited

Legend:

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

    r10150 r10200  
    534534        $this->allcaps = array();
    535535        foreach ( (array) $this->roles as $role ) {
    536             $role = $wp_roles->get_role( $role );
     536            $role =& $wp_roles->get_role( $role );
    537537            $this->allcaps = array_merge( $this->allcaps, $role->capabilities );
    538538        }
Note: See TracChangeset for help on using the changeset viewer.