Changeset 139 for trunk/wp-content/plugins/xpressme/xpressme_class.php
- Timestamp:
- Mar 28, 2009, 1:06:43 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/plugins/xpressme/xpressme_class.php
r108 r139 256 256 $select_value = $groupe->role; 257 257 258 259 258 260 foreach($wp_roles->role_names as $role => $name) { 259 261 $name = translate_with_context($name); … … 264 266 $selected = ''; 265 267 } 266 $role_list .= "<option value=\"{$role}\"{$selected}>{$name}</option>\n"; 267 } 268 if ($groupe->group_type != 'Admin' || !empty($selected)) { 269 $role_list .= "<option value=\"{$role}\"{$selected}>{$name}</option>\n"; 270 } 271 } 272 if ($groupe->group_type != 'Admin') { 268 273 if ( $group_has_role ) { 269 274 $role_list .= '<option value="default">' . __('Default Role of WordPress', 'xpressme') . "</option>\n"; … … 277 282 $role_list .= '<option value="" selected="selected">' . __('Group User Doesn\'t Register', 'xpressme') . "</option>\n"; 278 283 } 284 } 279 285 } 280 286 $form .= $role_list . "</select>\n</td>";
Note: See TracChangeset
for help on using the changeset viewer.