From 503a067f698241ce36149fb47986a3af2b2357d4 Mon Sep 17 00:00:00 2001 From: dinamiko Date: Tue, 14 Jun 2022 11:06:28 +0200 Subject: [PATCH] Fix typo --- modules/ppcp-button/src/Endpoint/ApproveOrderEndpoint.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ppcp-button/src/Endpoint/ApproveOrderEndpoint.php b/modules/ppcp-button/src/Endpoint/ApproveOrderEndpoint.php index 388a44ba5..7554f1731 100644 --- a/modules/ppcp-button/src/Endpoint/ApproveOrderEndpoint.php +++ b/modules/ppcp-button/src/Endpoint/ApproveOrderEndpoint.php @@ -183,7 +183,7 @@ class ApproveOrderEndpoint implements EndpointInterface { wp_send_json_success( $order ); } - if ( $this->order_helper->contains_physical_goods( $order ) && ! $order->status()->is( OrderStatus::APPROVED ) && ! $order->status()->is( OrderStatus::CREATED ) { + if ( $this->order_helper->contains_physical_goods( $order ) && ! $order->status()->is( OrderStatus::APPROVED ) && ! $order->status()->is( OrderStatus::CREATED ) ) { $message = sprintf( // translators: %s is the id of the order. __( 'Order %s is not ready for processing yet.', 'woocommerce-paypal-payments' ),