- small fix

This commit is contained in:
ashubawork
2024-04-30 13:08:23 +03:00
parent 3581da4a6f
commit 93de64ed75
+1 -1
View File
@@ -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'] ) {