Skip to content

Commit a549835

Browse files
Use full class name (#3547)
Co-authored-by: Diego Curbelo <[email protected]>
1 parent 460c82a commit a549835

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

woocommerce-gateway-stripe.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,10 @@ public function init() {
262262
require_once dirname( __FILE__ ) . '/includes/class-wc-stripe-account.php';
263263
new Allowed_Payment_Request_Button_Types_Update();
264264

265-
$this->api = new WC_Stripe_Connect_API();
266-
$this->connect = new WC_Stripe_Connect( $this->api );
267-
$this->payment_request_configuration = new WC_Stripe_Payment_Request();
268-
$this->account = new WC_Stripe_Account( $this->connect, 'WC_Stripe_API' );
265+
$this->api = new WC_Stripe_Connect_API();
266+
$this->connect = new WC_Stripe_Connect( $this->api );
267+
$this->payment_request_configuration = new WC_Stripe_Payment_Request();
268+
$this->account = new WC_Stripe_Account( $this->connect, 'WC_Stripe_API' );
269269

270270
// Express checkout configurations.
271271
$express_checkout_helper = new WC_Stripe_Express_Checkout_Helper();
@@ -483,12 +483,12 @@ public function add_gateways( $methods ) {
483483
}
484484
}
485485

486-
// Don't mark Link as enabled if we're in the admin so it doesn't show up in the checkout editor page.
486+
// Don't include Link as an enabled method if we're in the admin so it doesn't show up in the checkout editor page.
487487
if ( is_admin() ) {
488488
$methods = array_filter(
489489
$methods,
490490
function( $method ) {
491-
return WC_Stripe_UPE_Payment_Method_Link::class !== $method;
491+
return ! is_a( $method, WC_Stripe_UPE_Payment_Method_Link::class );
492492
}
493493
);
494494
}

0 commit comments

Comments
 (0)