mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Issue: Choice Callback – UM class validation error
Link: https://wordpress.org/support/topic/choice-callback-um-class-validation-error/
This commit is contained in:
@@ -55,6 +55,10 @@ if ( ! class_exists( 'um\core\Validation' ) ) {
|
||||
}
|
||||
|
||||
foreach ( $changes as $key => $value ) {
|
||||
if( !isset( $fields[ $key ] ) ){
|
||||
continue;
|
||||
}
|
||||
|
||||
//rating field validation
|
||||
if ( isset( $fields[ $key ]['type'] ) && $fields[ $key ]['type'] == 'rating' ) {
|
||||
if ( ! is_numeric( $value ) ) {
|
||||
|
||||
Reference in New Issue
Block a user