Fixed "singular" and "plural" parameters of WP_List_Table instances
Both should be slugs and not translatable. Fixes #13954
This commit is contained in:
parent
f250cac8d1
commit
5bcace31fc
|
@ -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,
|
||||
) );
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
) );
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
) );
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
) );
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
) );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue