parent
69ca69ce52
commit
ab562615ce
|
@ -22,9 +22,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
*/
|
||||
function wc_get_order_statuses() {
|
||||
$order_statuses = array(
|
||||
'wc-pending' => _x( 'Pending payment', 'Order status', 'woocommerce' ),
|
||||
'wc-pending' => _x( 'Pending Payment', 'Order status', 'woocommerce' ),
|
||||
'wc-processing' => _x( 'Processing', 'Order status', 'woocommerce' ),
|
||||
'wc-on-hold' => _x( 'On hold', 'Order status', 'woocommerce' ),
|
||||
'wc-on-hold' => _x( 'On Hold', 'Order status', 'woocommerce' ),
|
||||
'wc-completed' => _x( 'Completed', 'Order status', 'woocommerce' ),
|
||||
'wc-cancelled' => _x( 'Cancelled', 'Order status', 'woocommerce' ),
|
||||
'wc-refunded' => _x( 'Refunded', 'Order status', 'woocommerce' ),
|
||||
|
@ -56,7 +56,7 @@ function wc_get_order_status_name( $status ) {
|
|||
$status = 'wc-' === substr( $status, 0, 3 ) ? substr( $status, 3 ) : $status;
|
||||
$status = isset( $statuses[ 'wc-' . $status ] ) ? $statuses[ 'wc-' . $status ] : $status;
|
||||
|
||||
return wc_strtolower( $status );
|
||||
return $status;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue