Use wp_unslash
This commit is contained in:
parent
362867313f
commit
fa30b0bb07
|
@ -97,7 +97,7 @@ class WC_Customer_Data_Store_Session extends WC_Data_Store_WP implements WC_Cust
|
|||
$session_key = str_replace( 'billing_', '', $session_key );
|
||||
}
|
||||
if ( ! empty( $data[ $session_key ] ) && is_callable( array( $customer, "set_{$function_key}" ) ) ) {
|
||||
$customer->{"set_{$function_key}"}( stripslashes( $data[ $session_key ] ) );
|
||||
$customer->{"set_{$function_key}"}( wp_unslash( $data[ $session_key ] ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue