Use wp_unslash

This commit is contained in:
Mike Jolley 2017-11-06 15:48:11 +00:00
parent 362867313f
commit fa30b0bb07
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}"}( stripslashes( $data[ $session_key ] ) );
$customer->{"set_{$function_key}"}( wp_unslash( $data[ $session_key ] ) );
}
}
}