mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
fix stripslashes warning
This commit is contained in:
@@ -247,7 +247,10 @@ function um_user_edit_profile( $args ) {
|
||||
}
|
||||
|
||||
//validation of correct values from options in wp-admin
|
||||
$stripslashes = stripslashes( $args['submitted'][ $key ] );
|
||||
$stripslashes = $args['submitted'][ $key ];
|
||||
if( is_string( $stripslashes ) ){
|
||||
$stripslashes = stripslashes( $stripslashes );
|
||||
}
|
||||
if ( in_array( $array['type'], array( 'select' ) ) &&
|
||||
! empty( $array['options'] ) && ! empty( $stripslashes ) &&
|
||||
! in_array( $stripslashes, array_map( 'trim', $array['options'] ) ) ) {
|
||||
|
||||
Reference in New Issue
Block a user