includes/wpinv-tax-functions.php 1 location
|
@@ 241-244 (lines=4) @@
|
238 |
|
|
239 |
|
$invoice->country = sanitize_text_field($_POST['country']); |
240 |
|
$invoice->set( 'country', sanitize_text_field( $_POST['country'] ) ); |
241 |
|
if (isset($_POST['state'])) { |
242 |
|
$invoice->state = sanitize_text_field($_POST['state']); |
243 |
|
$invoice->set( 'state', sanitize_text_field( $_POST['state'] ) ); |
244 |
|
} |
245 |
|
|
246 |
|
$invoice->cart_details = wpinv_get_cart_content_details(); |
247 |
|
|
includes/class-wpinv-ajax.php 1 location
|
@@ 454-457 (lines=4) @@
|
451 |
|
|
452 |
|
$invoice->country = sanitize_text_field( $_POST['country'] ); |
453 |
|
$invoice->set( 'country', sanitize_text_field( $_POST['country'] ) ); |
454 |
|
if ( isset( $_POST['state'] ) ) { |
455 |
|
$invoice->state = sanitize_text_field( $_POST['state'] ); |
456 |
|
$invoice->set( 'state', sanitize_text_field( $_POST['state'] ) ); |
457 |
|
} |
458 |
|
|
459 |
|
$wpinv_ip_address_country = $invoice->country; |
460 |
|
|