Issue #17575 - perform stripslashes when setting shipping state to avoid unwanted backslashes

This commit is contained in:
Herb Miller 2017-11-05 21:11:39 +00:00 committed by Mike Jolley
parent 4c9d411b08
commit 8771c1f8e2
1 changed files with 1 additions and 1 deletions

View File

@ -846,7 +846,7 @@ class WC_Customer extends WC_Legacy_Customer {
public function set_shipping_location( $country, $state = '', $postcode = '', $city = '' ) {
$shipping = $this->get_prop( 'shipping', 'edit' );
$shipping['country'] = $country;
$shipping['state'] = $state;
$shipping['state'] = stripslashes( $state );
$shipping['postcode'] = $postcode;
$shipping['city'] = $city;
$this->set_prop( 'shipping', $shipping );