Issue #17575 - perform stripslashes when setting shipping state to avoid unwanted backslashes
This commit is contained in:
parent
4c9d411b08
commit
8771c1f8e2
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue