Issue #17570 - stripslashes when setting customer data from the session

This commit is contained in:
Herb Miller 2017-11-05 17:31:30 +00:00 committed by Mike Jolley
parent 3a5a046b7b
commit 4c9d411b08
1 changed files with 1 additions and 1 deletions

View File

@ -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}"}( $data[ $session_key ] );
$customer->{"set_{$function_key}"}( stripslashes( $data[ $session_key ] ) );
}
}
}