Replace stripslashes with stripslashes_deep on non-scalar setting values

This commit is contained in:
xristos3490 2019-10-09 11:25:41 +03:00
parent e007b2317a
commit d776c19dd4
1 changed files with 1 additions and 1 deletions

2
includes/admin/class-wc-admin-settings.php Normal file → Executable file
View File

@ -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 );
}