mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed using callback for member directory fields;
- fixed "false" display name in the member directory. it displays empty for now; - fixed function for cleaning and sanitize arrays;
This commit is contained in:
@@ -387,7 +387,7 @@ if ( ! class_exists( 'UM_Functions' ) ) {
|
||||
if ( is_array( $var ) ) {
|
||||
return array_map( array( $this, 'clean_array' ), $var );
|
||||
} else {
|
||||
return is_scalar( $var ) ? sanitize_text_field( $var ) : $var;
|
||||
return ! is_scalar( $var ) ? sanitize_text_field( $var ) : $var;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user