woothemes/woocommerce — pull request #4241 by ragulka (2013-11-28 15:26:02+00:00)
Title: Fix: customer should be able to pay for a new order

There is a bug in my original implementation of customer capabilities that may prevent a customer for paying for a new order.

This PR fixes this issue, as it assumes that when no $order_id is passed in, the order is new and the customer can pay for it. It also removes nasty debug warnings because of the missing second argument.