WordPress.org

Make WordPress Core

Ticket #18461: 18461.patch

File 18461.patch, 583 bytes (added by SergeyBiryukov, 3 years ago)
  • wp-includes/capabilities.php

     
    110110                $this->role_names =  array(); 
    111111                foreach ( (array) $this->roles as $role => $data ) { 
    112112                        $this->role_objects[$role] = new WP_Role( $role, $this->roles[$role]['capabilities'] ); 
    113                         $this->role_names[$role] = $this->roles[$role]['name']; 
     113                        $this->role_names[$role] = isset( $this->roles[$role]['name'] ) ? $this->roles[$role]['name'] : ''; 
    114114                } 
    115115        } 
    116116