Changeset 33967 for trunk/src/wp-includes/class-wp-roles.php
- Timestamp:
- 09/09/2015 03:41:27 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-roles.php
r33752 r33967 173 173 */ 174 174 public function add_role( $role, $display_name, $capabilities = array() ) { 175 if ( isset( $this->roles[$role] ) ) 176 return; 175 if ( empty( $role ) || isset( $this->roles[ $role ] ) ) { 176 return; 177 } 177 178 178 179 $this->roles[$role] = array(
Note: See TracChangeset
for help on using the changeset viewer.