Skip to content

Commit 3e581b7

Browse files
Merge pull request #725 from godaddy-wordpress/fix/bulk-charge-action
Only render "Capture Charge" bulk action on orders page
2 parents c9a8c18 + 6706a87 commit 3e581b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

woocommerce/payment-gateway/admin/class-sv-wc-payment-gateway-admin-order.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public function maybe_add_capture_charge_bulk_order_action() {
156156
return;
157157
}
158158

159-
if ( ! SV_WC_Order_Compatibility::is_orders_screen_for_status( 'trash' ) ) {
159+
if ( SV_WC_Order_Compatibility::is_orders_screen() && ! SV_WC_Order_Compatibility::is_orders_screen_for_status( 'trash' ) ) {
160160

161161
$can_capture_charge = false;
162162

0 commit comments

Comments
 (0)