Fix WPCS for #24657

This commit is contained in:
Gerhard 2019-09-30 14:51:51 +02:00
parent 1d5809e5b2
commit 9e3cb22dff
1 changed files with 1 additions and 1 deletions

View File

@ -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.
);