Changeset 13543
- Timestamp:
- 04/17/2024 02:04:01 AM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/rosetta/inc/site/class-locale-support.php
r5231 r13543 151 151 public function limit_editable_roles( $roles ) { 152 152 if ( ! is_super_admin() ) { 153 return [ 'subscriber' => $roles['subscriber'] ]; 153 return [ 154 'subscriber' => $roles['subscriber'], 155 'helphub_manager' => $roles['helphub_manager'], 156 'helphub_editor' => $roles['helphub_editor'], 157 ]; 154 158 } 155 159 156 $roles = array_intersect_key( $roles, array_flip( [ 'subscriber', 'administrator' ] ) );160 $roles = array_intersect_key( $roles, array_flip( [ 'subscriber', 'administrator', 'helphub_manager', 'helphub_editor' ] ) ); 157 161 158 162 return $roles;
Note: See TracChangeset
for help on using the changeset viewer.