Fixed "singular" and "plural" parameters of WP_List_Table instances

Both should be slugs and not translatable.

Fixes #13954
This commit is contained in:
Claudio Sanches 2017-04-05 18:13:10 -03:00
parent f250cac8d1
commit 5bcace31fc
5 changed files with 10 additions and 10 deletions

View File

@ -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,
) );
}

View File

@ -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,
) );
}

View File

@ -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,
) );
}

View File

@ -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,
) );
}

View File

@ -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,
) );
}