From 06747c3c179efc2056461c05dc51e60ae13776bd Mon Sep 17 00:00:00 2001 From: Marcin Warzybok Date: Fri, 2 Feb 2024 13:28:52 +0100 Subject: [PATCH] SP-787 add version of plugin for JS scripts --- BitPayLib/class-bitpaypages.php | 4 ++-- BitPayLib/class-wcgatewaybitpay.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BitPayLib/class-bitpaypages.php b/BitPayLib/class-bitpaypages.php index 31e0d27..a11a60d 100644 --- a/BitPayLib/class-bitpaypages.php +++ b/BitPayLib/class-bitpaypages.php @@ -38,8 +38,8 @@ public function checkout_thank_you( int $order_id ): void { $invoice_id = $_COOKIE['bitpay-invoice-id'] ?? null; // phpcs:ignore - wp_enqueue_script( 'remote-bitpay-js', $js_script, null, null, false ); // phpcs:ignore - wp_enqueue_script( 'bitpay_thank_you', plugins_url( '../../js/bitpay_thank_you.js', __FILE__ ), null, 1, false ); + wp_enqueue_script( 'remote-bitpay-js', $js_script, null, BitPayPluginSetup::VERSION, false ); // phpcs:ignore + wp_enqueue_script( 'bitpay_thank_you', plugins_url( '../../js/bitpay_thank_you.js', __FILE__ ), null, BitPayPluginSetup::VERSION, false ); // phpcs:ignore ?>