From fa026ea49d02ed75a65b634ac7386d8e78f592a9 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Wed, 10 Jun 2015 12:09:18 -0300 Subject: [PATCH] Normalize the "Order #" #8305 --- includes/class-wc-query.php | 2 +- .../paypal/includes/class-wc-gateway-paypal-ipn-handler.php | 4 ++-- templates/myaccount/my-orders.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/class-wc-query.php b/includes/class-wc-query.php index 723e49f4420..a2201d5273d 100644 --- a/includes/class-wc-query.php +++ b/includes/class-wc-query.php @@ -113,7 +113,7 @@ class WC_Query { break; case 'view-order' : $order = wc_get_order( $wp->query_vars['view-order'] ); - $title = ( $order ) ? sprintf( __( 'Order %s', 'woocommerce' ), _x( '#', 'hash before order number', 'woocommerce' ) . $order->get_order_number() ) : ''; + $title = ( $order ) ? sprintf( __( 'Order #%s', 'woocommerce' ), $order->get_order_number() ) : ''; break; case 'edit-account' : $title = __( 'Edit Account Details', 'woocommerce' ); diff --git a/includes/gateways/paypal/includes/class-wc-gateway-paypal-ipn-handler.php b/includes/gateways/paypal/includes/class-wc-gateway-paypal-ipn-handler.php index 02a2c8441dc..3b7fb3f7b72 100644 --- a/includes/gateways/paypal/includes/class-wc-gateway-paypal-ipn-handler.php +++ b/includes/gateways/paypal/includes/class-wc-gateway-paypal-ipn-handler.php @@ -244,7 +244,7 @@ class WC_Gateway_Paypal_IPN_Handler extends WC_Gateway_Paypal_Response { $this->send_ipn_email_notification( sprintf( __( 'Payment for order #%s refunded/reversed', 'woocommerce' ), $order->get_order_number() ), - sprintf( __( 'Order %s has been marked as refunded - PayPal reason code: %s', 'woocommerce' ), $order->get_order_number(), $posted['reason_code'] ) + sprintf( __( 'Order #%s has been marked as refunded - PayPal reason code: %s', 'woocommerce' ), $order->get_order_number(), $posted['reason_code'] ) ); } } @@ -258,7 +258,7 @@ class WC_Gateway_Paypal_IPN_Handler extends WC_Gateway_Paypal_Response { $this->send_ipn_email_notification( sprintf( __( 'Payment for order #%s reversed', 'woocommerce' ), $order->get_order_number() ), - sprintf( __( 'Order %s has been marked on-hold due to a reversal - PayPal reason code: %s', 'woocommerce' ), $order->get_order_number(), wc_clean( $posted['reason_code'] ) ) + sprintf( __( 'Order #%s has been marked on-hold due to a reversal - PayPal reason code: %s', 'woocommerce' ), $order->get_order_number(), wc_clean( $posted['reason_code'] ) ) ); } diff --git a/templates/myaccount/my-orders.php b/templates/myaccount/my-orders.php index c5e7fa5dda5..7c96acc36ea 100644 --- a/templates/myaccount/my-orders.php +++ b/templates/myaccount/my-orders.php @@ -46,7 +46,7 @@ if ( $customer_orders ) : ?> ?> - get_order_number() ); ?> + get_order_number(); ?>