Fix WPCS for #24657
This commit is contained in:
parent
1d5809e5b2
commit
9e3cb22dff
|
@ -464,7 +464,7 @@ class WC_Frontend_Scripts {
|
|||
case 'wc-geolocation':
|
||||
$params = array(
|
||||
'wc_ajax_url' => WC_AJAX::get_endpoint( '%%endpoint%%' ),
|
||||
'home_url' => remove_query_arg( 'lang', home_url() ), //FIX for WPML compatibility
|
||||
'home_url' => remove_query_arg( 'lang', home_url() ), // FIX for WPML compatibility.
|
||||
'is_available' => ! ( is_cart() || is_account_page() || is_checkout() || is_customize_preview() ) ? '1' : '0',
|
||||
'hash' => isset( $_GET['v'] ) ? wc_clean( wp_unslash( $_GET['v'] ) ) : '', // WPCS: input var ok, CSRF ok.
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue