Make WordPress Core

Changeset 11019


Ignore:
Timestamp:
04/20/2009 08:03:20 PM (15 years ago)
Author:
ryan
Message:

Cast to array to fix warning. Props johnkolbert, Denis-de-Bernardy. fixes #9128

File:
1 edited

Legend:

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

    r10874 r11019  
    535535        foreach ( (array) $this->roles as $role ) {
    536536            $role =& $wp_roles->get_role( $role );
    537             $this->allcaps = array_merge( $this->allcaps, $role->capabilities );
    538         }
    539         $this->allcaps = array_merge( $this->allcaps, $this->caps );
     537            $this->allcaps = array_merge( (array) $this->allcaps, (array) $role->capabilities );
     538        }
     539        $this->allcaps = array_merge( (array) $this->allcaps, (array) $this->caps );
    540540    }
    541541
Note: See TracChangeset for help on using the changeset viewer.