mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Remove notice
This commit is contained in:
@@ -73,7 +73,11 @@ if ( ! class_exists( 'um\core\Validation' ) ) {
|
||||
}
|
||||
|
||||
//validation of correct values from options in wp-admin
|
||||
$stripslashes = stripslashes( $value );
|
||||
$stripslashes = $value;
|
||||
if( is_string( $value ) ){
|
||||
$stripslashes = stripslashes( $value );
|
||||
}
|
||||
|
||||
if ( in_array( $fields[ $key ]['type'], array( 'select' ) ) &&
|
||||
! empty( $stripslashes ) && ! empty( $fields[ $key ]['options'] ) &&
|
||||
! in_array( $stripslashes, array_map( 'trim', $fields[ $key ]['options'] ) ) ) {
|
||||
|
||||
Reference in New Issue
Block a user