mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 14:43:49 +09:00
Fix radio and checkbox fields selection
This commit is contained in:
@@ -203,8 +203,8 @@
|
||||
);
|
||||
|
||||
$replace = apply_filters('um_template_tags_replaces_hook', $replace);
|
||||
|
||||
$content = wp_kses_decode_entities( str_replace($search, $replace, $content) );
|
||||
|
||||
$content = wp_kses_decode_entities( str_replace($search, $replace, $content) );
|
||||
|
||||
if ( isset( $args['tags'] ) && isset( $args['tags_replace'] ) ) {
|
||||
$content = str_replace($args['tags'], $args['tags_replace'], $content);
|
||||
@@ -1363,11 +1363,11 @@ function um_fetch_user( $user_id ) {
|
||||
$value = unserialize( $value );
|
||||
}
|
||||
|
||||
if( $data == 'role' ){
|
||||
if( in_array( $data, array('role','gender') ) ){
|
||||
if( is_array( $value ) ){
|
||||
$value = implode(",", $value );
|
||||
}
|
||||
return strtolower($value);
|
||||
return $value;
|
||||
}
|
||||
|
||||
return $value;
|
||||
@@ -1597,6 +1597,7 @@ function um_fetch_user( $user_id ) {
|
||||
|
||||
break;
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user