From 5bcace31fcacc6971b3555dfd0c2c55c54920490 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Wed, 5 Apr 2017 18:13:10 -0300 Subject: [PATCH] Fixed "singular" and "plural" parameters of WP_List_Table instances Both should be slugs and not translatable. Fixes #13954 --- includes/admin/class-wc-admin-api-keys-table-list.php | 4 ++-- includes/admin/class-wc-admin-log-table-list.php | 4 ++-- includes/admin/class-wc-admin-webhooks-table-list.php | 4 ++-- includes/admin/reports/class-wc-report-customer-list.php | 4 ++-- includes/admin/reports/class-wc-report-stock.php | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/includes/admin/class-wc-admin-api-keys-table-list.php b/includes/admin/class-wc-admin-api-keys-table-list.php index 22f41b2eb16..b4df72c7fa4 100644 --- a/includes/admin/class-wc-admin-api-keys-table-list.php +++ b/includes/admin/class-wc-admin-api-keys-table-list.php @@ -23,8 +23,8 @@ class WC_Admin_API_Keys_Table_List extends WP_List_Table { */ public function __construct() { parent::__construct( array( - 'singular' => __( 'key', 'woocommerce' ), - 'plural' => __( 'keys', 'woocommerce' ), + 'singular' => 'key', + 'plural' => 'keys', 'ajax' => false, ) ); } diff --git a/includes/admin/class-wc-admin-log-table-list.php b/includes/admin/class-wc-admin-log-table-list.php index d97c750bc56..1016705a8ce 100644 --- a/includes/admin/class-wc-admin-log-table-list.php +++ b/includes/admin/class-wc-admin-log-table-list.php @@ -23,8 +23,8 @@ class WC_Admin_Log_Table_List extends WP_List_Table { */ public function __construct() { parent::__construct( array( - 'singular' => __( 'log', 'woocommerce' ), - 'plural' => __( 'logs', 'woocommerce' ), + 'singular' => 'log', + 'plural' => 'logs', 'ajax' => false, ) ); } diff --git a/includes/admin/class-wc-admin-webhooks-table-list.php b/includes/admin/class-wc-admin-webhooks-table-list.php index 201fdb292d5..8a6b54e6b70 100644 --- a/includes/admin/class-wc-admin-webhooks-table-list.php +++ b/includes/admin/class-wc-admin-webhooks-table-list.php @@ -23,8 +23,8 @@ class WC_Admin_Webhooks_Table_List extends WP_List_Table { */ public function __construct() { parent::__construct( array( - 'singular' => __( 'webhook', 'woocommerce' ), - 'plural' => __( 'webhooks', 'woocommerce' ), + 'singular' => 'webhook', + 'plural' => 'webhooks', 'ajax' => false, ) ); } diff --git a/includes/admin/reports/class-wc-report-customer-list.php b/includes/admin/reports/class-wc-report-customer-list.php index f677eaf231c..96e0e7019b7 100644 --- a/includes/admin/reports/class-wc-report-customer-list.php +++ b/includes/admin/reports/class-wc-report-customer-list.php @@ -24,8 +24,8 @@ class WC_Report_Customer_List extends WP_List_Table { public function __construct() { parent::__construct( array( - 'singular' => __( 'Customer', 'woocommerce' ), - 'plural' => __( 'Customers', 'woocommerce' ), + 'singular' => 'customer', + 'plural' => 'customers', 'ajax' => false, ) ); } diff --git a/includes/admin/reports/class-wc-report-stock.php b/includes/admin/reports/class-wc-report-stock.php index 4d527df6f5f..9778538a02e 100644 --- a/includes/admin/reports/class-wc-report-stock.php +++ b/includes/admin/reports/class-wc-report-stock.php @@ -31,8 +31,8 @@ class WC_Report_Stock extends WP_List_Table { public function __construct() { parent::__construct( array( - 'singular' => __( 'Stock', 'woocommerce' ), - 'plural' => __( 'Stock', 'woocommerce' ), + 'singular' => 'stock', + 'plural' => 'stock', 'ajax' => false, ) ); }