Replace stripslashes with stripslashes_deep on non-scalar setting values
This commit is contained in:
parent
e007b2317a
commit
d776c19dd4
|
@ -187,7 +187,7 @@ if ( ! class_exists( 'WC_Admin_Settings', false ) ) :
|
|||
}
|
||||
|
||||
if ( is_array( $option_value ) ) {
|
||||
$option_value = array_map( 'stripslashes', $option_value );
|
||||
$option_value = array_map( 'stripslashes_deep', $option_value );
|
||||
} elseif ( ! is_null( $option_value ) ) {
|
||||
$option_value = stripslashes( $option_value );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue