Ticket #18461: 18461.patch
| File 18461.patch, 583 bytes (added by SergeyBiryukov, 21 months ago) |
|---|
-
wp-includes/capabilities.php
110 110 $this->role_names = array(); 111 111 foreach ( (array) $this->roles as $role => $data ) { 112 112 $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'] : ''; 114 114 } 115 115 } 116 116
