From 6b02ee217c6f85c94caf6713007b149a575020a0 Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Wed, 12 Jun 2019 16:16:18 -0300 Subject: [PATCH] Update Amount of Orders to Number of Orders throughout --- .../api/class-wc-admin-rest-reports-categories-controller.php | 2 +- .../api/class-wc-admin-rest-reports-coupons-controller.php | 2 +- .../api/class-wc-admin-rest-reports-orders-stats-controller.php | 2 +- .../class-wc-admin-rest-reports-revenue-stats-controller.php | 2 +- .../api/class-wc-admin-rest-reports-taxes-controller.php | 2 +- .../api/class-wc-admin-rest-reports-taxes-stats-controller.php | 2 +- .../tests/api/reports-performance-indicators.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-categories-controller.php b/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-categories-controller.php index ded3e478ffa..9d8161151db 100644 --- a/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-categories-controller.php +++ b/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-categories-controller.php @@ -180,7 +180,7 @@ class WC_Admin_REST_Reports_Categories_Controller extends WC_Admin_REST_Reports_ 'readonly' => true, ), 'orders_count' => array( - 'description' => __( 'Amount of orders.', 'woocommerce-admin' ), + 'description' => __( 'Number of orders.', 'woocommerce-admin' ), 'type' => 'integer', 'context' => array( 'view', 'edit' ), 'readonly' => true, diff --git a/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-coupons-controller.php b/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-coupons-controller.php index 8cc87aafcb4..20a7f1020af 100644 --- a/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-coupons-controller.php +++ b/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-coupons-controller.php @@ -162,7 +162,7 @@ class WC_Admin_REST_Reports_Coupons_Controller extends WC_REST_Reports_Controlle 'readonly' => true, ), 'orders_count' => array( - 'description' => __( 'Amount of orders.', 'woocommerce-admin' ), + 'description' => __( 'Number of orders.', 'woocommerce-admin' ), 'type' => 'integer', 'context' => array( 'view', 'edit' ), 'readonly' => true, diff --git a/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-orders-stats-controller.php b/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-orders-stats-controller.php index 0e0f89243b9..73e9829264c 100644 --- a/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-orders-stats-controller.php +++ b/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-orders-stats-controller.php @@ -155,7 +155,7 @@ class WC_Admin_REST_Reports_Orders_Stats_Controller extends WC_Admin_REST_Report 'format' => 'currency', ), 'orders_count' => array( - 'description' => __( 'Amount of orders', 'woocommerce-admin' ), + 'description' => __( 'Number of orders', 'woocommerce-admin' ), 'type' => 'integer', 'context' => array( 'view', 'edit' ), 'readonly' => true, diff --git a/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-revenue-stats-controller.php b/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-revenue-stats-controller.php index 9d9c72c5b93..5d0a3f8f743 100644 --- a/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-revenue-stats-controller.php +++ b/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-revenue-stats-controller.php @@ -189,7 +189,7 @@ class WC_Admin_REST_Reports_Revenue_Stats_Controller extends WC_REST_Reports_Con 'format' => 'currency', ), 'orders_count' => array( - 'description' => __( 'Amount of orders.', 'woocommerce-admin' ), + 'description' => __( 'Number of orders.', 'woocommerce-admin' ), 'type' => 'integer', 'context' => array( 'view', 'edit' ), 'readonly' => true, diff --git a/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-taxes-controller.php b/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-taxes-controller.php index 6729c9a3e89..a471bf75351 100644 --- a/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-taxes-controller.php +++ b/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-taxes-controller.php @@ -202,7 +202,7 @@ class WC_Admin_REST_Reports_Taxes_Controller extends WC_REST_Reports_Controller 'readonly' => true, ), 'orders_count' => array( - 'description' => __( 'Amount of orders.', 'woocommerce-admin' ), + 'description' => __( 'Number of orders.', 'woocommerce-admin' ), 'type' => 'integer', 'context' => array( 'view', 'edit' ), 'readonly' => true, diff --git a/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-taxes-stats-controller.php b/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-taxes-stats-controller.php index 340f142a795..c6c3b23cfb0 100644 --- a/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-taxes-stats-controller.php +++ b/plugins/woocommerce-admin/includes/api/class-wc-admin-rest-reports-taxes-stats-controller.php @@ -188,7 +188,7 @@ class WC_Admin_REST_Reports_Taxes_Stats_Controller extends WC_REST_Reports_Contr 'format' => 'currency', ), 'orders_count' => array( - 'description' => __( 'Amount of orders.', 'woocommerce-admin' ), + 'description' => __( 'Number of orders.', 'woocommerce-admin' ), 'type' => 'integer', 'context' => array( 'view', 'edit' ), 'readonly' => true, diff --git a/plugins/woocommerce-admin/tests/api/reports-performance-indicators.php b/plugins/woocommerce-admin/tests/api/reports-performance-indicators.php index 487ba3fb9e6..3d0389158bd 100644 --- a/plugins/woocommerce-admin/tests/api/reports-performance-indicators.php +++ b/plugins/woocommerce-admin/tests/api/reports-performance-indicators.php @@ -102,7 +102,7 @@ class WC_Tests_API_Reports_Performance_Indicators extends WC_REST_Unit_Test_Case $this->assertEquals( 2, count( $reports ) ); $this->assertEquals( 'orders/orders_count', $reports[0]['stat'] ); - $this->assertEquals( 'Amount of orders', $reports[0]['label'] ); + $this->assertEquals( 'Number of orders', $reports[0]['label'] ); $this->assertEquals( 1, $reports[0]['value'] ); $this->assertEquals( 'orders_count', $reports[0]['chart'] ); $this->assertEquals( '/analytics/orders', $response->data[0]['_links']['report'][0]['href'] );