Merge remote-tracking branch 'remotes/origin/fix/wporg/choice-callback-um-class-validation-error'

This commit is contained in:
nikitasinelnikov
2019-07-16 14:14:16 +03:00
+4
View File
@@ -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 ) ) {