mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-16 13:13:33 +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
|
//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' ) ) &&
|
if ( in_array( $array['type'], array( 'select' ) ) &&
|
||||||
! empty( $array['options'] ) && ! empty( $stripslashes ) &&
|
! empty( $array['options'] ) && ! empty( $stripslashes ) &&
|
||||||
! in_array( $stripslashes, array_map( 'trim', $array['options'] ) ) ) {
|
! in_array( $stripslashes, array_map( 'trim', $array['options'] ) ) ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user