Skip to content

Commit 38def86

Browse files
dkooannemirasol
andauthored
fix: WC_STRIPE_PLUGIN_URL when pointing to symbolic link (#3029)
* fix: WC_STRIPE_PLUGIN_URL when pointing to symbolic link * Add changelog and readme entries --------- Co-authored-by: Anne Mirasol <[email protected]>
1 parent 0539869 commit 38def86

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
*** Changelog ***
22

33
= 8.8.0 - xxxx-xx-xx =
4+
* Fix - Update URL and path constants to support use of symlinked plugin.
45
* Tweak - Disable ECE when cart has virtual products and tax is based on customer billing or shipping address.
56
* Fix - Fix the usage of coupons and the total shipping amount when using the Express Checkout Element on the shortcode checkout.
67
* Fix - Fixes some JS console errors when making a purchase with the Stripe Express Checkout Element on the shortcode checkout.

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ If you get stuck, you can ask for help in the Plugin Forum.
129129
== Changelog ==
130130

131131
= 8.8.0 - xxxx-xx-xx =
132+
* Fix - Update URL and path constants to support use of symlinked plugin.
132133
* Tweak - Disable ECE when cart has virtual products and tax is based on customer billing or shipping address.
133134
* Fix - Fix the usage of coupons and the total shipping amount when using the Express Checkout Element on the shortcode checkout.
134135
* Fix - Fixes some JS console errors when making a purchase with the Stripe Express Checkout Element on the shortcode checkout.

woocommerce-gateway-stripe.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
define( 'WC_STRIPE_FUTURE_MIN_WC_VER', '7.5' );
2929
define( 'WC_STRIPE_MAIN_FILE', __FILE__ );
3030
define( 'WC_STRIPE_ABSPATH', __DIR__ . '/' );
31-
define( 'WC_STRIPE_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );
32-
define( 'WC_STRIPE_PLUGIN_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
31+
define( 'WC_STRIPE_PLUGIN_URL', untrailingslashit( plugin_dir_url( WC_STRIPE_MAIN_FILE ) ) );
32+
define( 'WC_STRIPE_PLUGIN_PATH', untrailingslashit( plugin_dir_path( WC_STRIPE_MAIN_FILE ) ) );
3333

3434
// phpcs:disable WordPress.Files.FileName
3535

0 commit comments

Comments
 (0)