Version 1.0.47

This commit is contained in:
ultimatemember
2015-02-09 00:29:16 +02:00
parent a86f5da070
commit 5487c7b6d1
24 changed files with 407 additions and 397 deletions
+12 -2
View File
@@ -61,6 +61,7 @@ class UM_Members {
global $ultimatemember;
$fields = $ultimatemember->builtin->all_user_fields;
$attrs = $fields[$filter];
if ( $ultimatemember->builtin->is_dropdown_field( $filter ) ) {
@@ -79,9 +80,18 @@ class UM_Members {
<option></option>
<?php foreach( $attrs['options'] as $k => $v ) { $v = stripslashes($v); ?>
<?php foreach( $attrs['options'] as $k => $v ) {
$v = stripslashes($v);
$opt = $v;
if ( strstr($filter, 'role_') )
$opt = $k;
?>
<option value="<?php echo $v; ?>" <?php um_select_if_in_query_params( $filter, $v ); ?>><?php echo $v; ?></option>
<option value="<?php echo $opt; ?>" <?php um_select_if_in_query_params( $filter, $opt ); ?>><?php echo $v; ?></option>
<?php } ?>