Skip to content

Commit

Permalink
Cleanup the removed scripts rollout (#7911)
Browse files Browse the repository at this point in the history
Co-authored-by: Timur Karimov <[email protected]>
  • Loading branch information
timur27 and Timur Karimov authored Dec 14, 2023
1 parent f59a0b2 commit 85e191a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 28 deletions.
4 changes: 4 additions & 0 deletions changelog/cleanup-redundant-script-enqueueing
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: dev

Cleanup enqueueing of the scripts which were removed
26 changes: 0 additions & 26 deletions includes/class-wc-payments-upe-split-blocks-payment-method.php

This file was deleted.

3 changes: 1 addition & 2 deletions includes/class-wc-payments.php
Original file line number Diff line number Diff line change
Expand Up @@ -1316,8 +1316,7 @@ public static function get_session_service() {
*/
public static function register_checkout_gateway( $payment_method_registry ) {
require_once __DIR__ . '/class-wc-payments-blocks-payment-method.php';
require_once __DIR__ . '/class-wc-payments-upe-split-blocks-payment-method.php';
$payment_method_registry->register( new WC_Payments_UPE_Split_Blocks_Payment_Method() );
$payment_method_registry->register( new WC_Payments_Blocks_Payment_Method() );
}

/**
Expand Down

0 comments on commit 85e191a

Please sign in to comment.