Skip to content

Commit

Permalink
SP-787 add version of plugin for JS scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarzybok-sumoheavy committed Feb 2, 2024
1 parent 940aa4e commit 06747c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions BitPayLib/class-bitpaypages.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
?>
<script type="text/javascript">
const testMode = '<?php echo esc_js( $test_mode ); ?>';
Expand Down
2 changes: 1 addition & 1 deletion BitPayLib/class-wcgatewaybitpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __construct() {
'bitpay_wc_gateway',
plugins_url( '../../js/wc_gateway_bitpay.js', __FILE__ ),
null,
1,
BitPayPluginSetup::VERSION,
false
);
}
Expand Down

0 comments on commit 06747c3

Please sign in to comment.