* Revert "Store API: Do not resume orders with `pending` status (#50531)"
This reverts commit 3170acd1b0
.
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
parent
2890e16c86
commit
dec89a1311
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: tweak
|
||||||
|
Comment: This reverts an existing PR.
|
||||||
|
|
|
@ -60,9 +60,8 @@ trait DraftOrderTrait {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Failed orders and those needing payment can be retried if the cart hasn't changed.
|
// Pending and failed orders can be retried if the cart hasn't changed.
|
||||||
// Pending orders are excluded from this check since they may be awaiting an update from the payment processor.
|
if ( $order_object->needs_payment() && $order_object->has_cart_hash( wc()->cart->get_cart_hash() ) ) {
|
||||||
if ( $order_object->needs_payment() && ! $order_object->has_status( 'pending' ) && $order_object->has_cart_hash( wc()->cart->get_cart_hash() ) ) {
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue