mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- small fix
This commit is contained in:
@@ -850,7 +850,7 @@ function um_profile_field_filter_xss_validation( $value, $data, $type = '' ) {
|
||||
$value = 0;
|
||||
} else {
|
||||
if ( 5 === absint( $data['number'] ) ) {
|
||||
if ( ! in_array( $value, range( 1, 5 ), true ) ) {
|
||||
if ( ! in_array( absint( $value ), range( 1, 5 ), true ) ) {
|
||||
$value = 0;
|
||||
}
|
||||
} elseif ( 10 === $data['number'] ) {
|
||||
|
||||
Reference in New Issue
Block a user