From e7b8e3ed7be8134183a33a72fa57f03cf1447667 Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Fri, 30 Aug 2019 10:01:55 -0300 Subject: [PATCH] Fix typo in order note PR #24501 fixed a typo in a order note string. This commit fix the same problem in another place where the same string is used. --- includes/gateways/paypal/class-wc-gateway-paypal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/gateways/paypal/class-wc-gateway-paypal.php b/includes/gateways/paypal/class-wc-gateway-paypal.php index d1873e77c78dc..b99dda72f1121 100644 --- a/includes/gateways/paypal/class-wc-gateway-paypal.php +++ b/includes/gateways/paypal/class-wc-gateway-paypal.php @@ -408,7 +408,7 @@ public function capture_payment( $order_id ) { if ( is_wp_error( $result ) ) { $this->log( 'Capture Failed: ' . $result->get_error_message(), 'error' ); /* translators: %s: Paypal gateway error message */ - $order->add_order_note( sprintf( __( 'Payment could not captured: %s', 'woocommerce' ), $result->get_error_message() ) ); + $order->add_order_note( sprintf( __( 'Payment could not be captured: %s', 'woocommerce' ), $result->get_error_message() ) ); return; }