diff --git a/laterpay/application/Controller/Admin/Appearance.php b/laterpay/application/Controller/Admin/Appearance.php index 6fec0b564..435d3750b 100644 --- a/laterpay/application/Controller/Admin/Appearance.php +++ b/laterpay/application/Controller/Admin/Appearance.php @@ -68,7 +68,7 @@ public function load_assets() { ), 'l10n_print_after' => 'lpVars.overlaySettings = JSON.parse(lpVars.overlaySettings)', 'gaData' => array( - 'sandbox_merchant_id' => ( ! empty( $merchant_key ) ) ? esc_js( $merchant_key ) : '', + 'sandbox_merchant_id' => ( ! empty( $merchant_key ) ) ? $merchant_key : '', ), ) ); diff --git a/laterpay/application/Controller/Admin/Post/Metabox.php b/laterpay/application/Controller/Admin/Post/Metabox.php index 341a5459c..983c498e7 100644 --- a/laterpay/application/Controller/Admin/Post/Metabox.php +++ b/laterpay/application/Controller/Admin/Post/Metabox.php @@ -148,7 +148,7 @@ public function load_scripts() { 'l10n_print_after' => 'jQuery.extend(lpVars, laterpay_post_edit)', 'postPriceBehaviour' => LaterPay_Helper_Pricing::get_post_price_behaviour(), 'gaData' => array( - 'sandbox_merchant_id' => ( ! empty( $merchant_key ) ) ? esc_js( $merchant_key ) : '', + 'sandbox_merchant_id' => ( ! empty( $merchant_key ) ) ? $merchant_key : '', ), ) ); diff --git a/laterpay/application/Controller/Admin/Pricing.php b/laterpay/application/Controller/Admin/Pricing.php index 61835a2e5..06586470d 100644 --- a/laterpay/application/Controller/Admin/Pricing.php +++ b/laterpay/application/Controller/Admin/Pricing.php @@ -146,7 +146,7 @@ public function load_assets() { lpVars.sub_vouchers_list = JSON.parse(lpVars.sub_vouchers_list); lpVars.vouchers_statistic = JSON.parse(lpVars.vouchers_statistic);', 'gaData' => array( - 'sandbox_merchant_id' => ( ! empty( $merchant_key ) ) ? esc_js( $merchant_key ) : '', + 'sandbox_merchant_id' => ( ! empty( $merchant_key ) ) ? $merchant_key : '', ), ) ); diff --git a/laterpay/application/Controller/Admin/Settings.php b/laterpay/application/Controller/Admin/Settings.php index 8ce46cbd2..ee5c7728f 100644 --- a/laterpay/application/Controller/Admin/Settings.php +++ b/laterpay/application/Controller/Admin/Settings.php @@ -78,8 +78,8 @@ public function load_assets() 'invalidCode' => esc_html__( 'Please enter valid UA-ID code!', 'laterpay' ), ), 'gaData' => array( - 'custom_roles' => array_map( 'esc_js', $custom_role_names ), - 'sandbox_merchant_id' => ( ! empty( $merchant_key ) ) ? esc_js( $merchant_key ) : '', + 'custom_roles' => $custom_role_names, + 'sandbox_merchant_id' => ( ! empty( $merchant_key ) ) ? $merchant_key : '', ), ) );