From 8ea55a485418f12196968a4fdcf1562dd94e73f2 Mon Sep 17 00:00:00 2001 From: Ashley Gibson Date: Mon, 25 Nov 2024 13:45:26 +0000 Subject: [PATCH] Only render on orders page --- .../admin/class-sv-wc-payment-gateway-admin-order.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/woocommerce/payment-gateway/admin/class-sv-wc-payment-gateway-admin-order.php b/woocommerce/payment-gateway/admin/class-sv-wc-payment-gateway-admin-order.php index 8d67c7cfc..7d63945f0 100644 --- a/woocommerce/payment-gateway/admin/class-sv-wc-payment-gateway-admin-order.php +++ b/woocommerce/payment-gateway/admin/class-sv-wc-payment-gateway-admin-order.php @@ -156,7 +156,7 @@ public function maybe_add_capture_charge_bulk_order_action() { return; } - if ( ! SV_WC_Order_Compatibility::is_orders_screen_for_status( 'trash' ) ) { + if ( SV_WC_Order_Compatibility::is_orders_screen() && ! SV_WC_Order_Compatibility::is_orders_screen_for_status( 'trash' ) ) { $can_capture_charge = false;