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() {
|
public function __construct() {
|
||||||
parent::__construct( array(
|
parent::__construct( array(
|
||||||
'singular' => __( 'key', 'woocommerce' ),
|
'singular' => 'key',
|
||||||
'plural' => __( 'keys', 'woocommerce' ),
|
'plural' => 'keys',
|
||||||
'ajax' => false,
|
'ajax' => false,
|
||||||
) );
|
) );
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,8 +23,8 @@ class WC_Admin_Log_Table_List extends WP_List_Table {
|
||||||
*/
|
*/
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
parent::__construct( array(
|
parent::__construct( array(
|
||||||
'singular' => __( 'log', 'woocommerce' ),
|
'singular' => 'log',
|
||||||
'plural' => __( 'logs', 'woocommerce' ),
|
'plural' => 'logs',
|
||||||
'ajax' => false,
|
'ajax' => false,
|
||||||
) );
|
) );
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,8 +23,8 @@ class WC_Admin_Webhooks_Table_List extends WP_List_Table {
|
||||||
*/
|
*/
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
parent::__construct( array(
|
parent::__construct( array(
|
||||||
'singular' => __( 'webhook', 'woocommerce' ),
|
'singular' => 'webhook',
|
||||||
'plural' => __( 'webhooks', 'woocommerce' ),
|
'plural' => 'webhooks',
|
||||||
'ajax' => false,
|
'ajax' => false,
|
||||||
) );
|
) );
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,8 +24,8 @@ class WC_Report_Customer_List extends WP_List_Table {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
|
|
||||||
parent::__construct( array(
|
parent::__construct( array(
|
||||||
'singular' => __( 'Customer', 'woocommerce' ),
|
'singular' => 'customer',
|
||||||
'plural' => __( 'Customers', 'woocommerce' ),
|
'plural' => 'customers',
|
||||||
'ajax' => false,
|
'ajax' => false,
|
||||||
) );
|
) );
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,8 +31,8 @@ class WC_Report_Stock extends WP_List_Table {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
|
|
||||||
parent::__construct( array(
|
parent::__construct( array(
|
||||||
'singular' => __( 'Stock', 'woocommerce' ),
|
'singular' => 'stock',
|
||||||
'plural' => __( 'Stock', 'woocommerce' ),
|
'plural' => 'stock',
|
||||||
'ajax' => false,
|
'ajax' => false,
|
||||||
) );
|
) );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue