You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Capture Charge bulk action option is added to other list tables when HPOS order storage is enabled. It is intended for capturing order payments and should only be displayed on the orders list table. However, it is currently appearing in the bulk action dropdowns of other list tables. For example: Plugins list table, Posts/Pages list table.
Based on a quick check, it seems the maybe_add_capture_charge_bulk_order_action() method is hooked to admin_footer and doesn't have the appropriate checks to target only the orders list. As a result, it is applied to all list tables.
@agibson-godaddy It looks like there's a missing check in the callback to see if the current screen is woocommerce_page_wc-orders when the admin_footer is the current_action(): this should be an easy fix -- currently all gateways implementing the FW are affected
The Capture Charge bulk action option is added to other list tables when HPOS order storage is enabled. It is intended for capturing order payments and should only be displayed on the orders list table. However, it is currently appearing in the bulk action dropdowns of other list tables. For example: Plugins list table, Posts/Pages list table.
Based on a quick check, it seems the
maybe_add_capture_charge_bulk_order_action()
method is hooked to admin_footer and doesn't have the appropriate checks to target only the orders list. As a result, it is applied to all list tables.wc-plugin-framework/woocommerce/payment-gateway/admin/class-sv-wc-payment-gateway-admin-order.php
Line 67 in fa2f586
The text was updated successfully, but these errors were encountered: