woothemes/woocommerce — pull request #5334 by ragulka (2014-04-17 16:33:28+00:00)
Title: Valid order statuses improvements

This PR addresses an issue where it was possible to filter the valid order statuses for payment on my-orders.php, checkout and in order class, but not in the actual pay_action in `wc-form-handler.php`.

Also, it introduces the `woocommerce_valid_order_statuses_for_payment_complete` filter which further allows developers to decide which order statuses are valid for completing a payment.