From 4b46c5593e43f0e9e70b59881d5f5546119045c4 Mon Sep 17 00:00:00 2001 From: Luke Carbis Date: Wed, 27 Jul 2016 14:50:11 +1000 Subject: [PATCH] Remove strtolower from WooCommerce order status --- connectors/class-connector-woocommerce.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/connectors/class-connector-woocommerce.php b/connectors/class-connector-woocommerce.php index cb61dbbc2..9461809f3 100644 --- a/connectors/class-connector-woocommerce.php +++ b/connectors/class-connector-woocommerce.php @@ -422,13 +422,13 @@ public function callback_woocommerce_order_status_changed( $order_id, $old, $new } if ( version_compare( $this->plugin_version, '2.2', '>=' ) ) { - $old_status_name = strtolower( wc_get_order_status_name( $old ) ); - $new_status_name = strtolower( wc_get_order_status_name( $new ) ); + $old_status_name = wc_get_order_status_name( $old ); + $new_status_name = wc_get_order_status_name( $new ); } else { $old_status = wp_stream_is_vip() ? wpcom_vip_get_term_by( 'slug', $old, 'shop_order_status' ) : get_term_by( 'slug', $old, 'shop_order_status' ); $new_status = wp_stream_is_vip() ? wpcom_vip_get_term_by( 'slug', $new, 'shop_order_status' ) : get_term_by( 'slug', $new, 'shop_order_status' ); - $new_status_name = strtolower( $new_status->name ); - $old_status_name = strtolower( $old_status->name ); + $new_status_name = $new_status->name; + $old_status_name = $old_status->name; } $message = esc_html_x(