Merge pull request #13986 from woocommerce/fix/13954

Fixed "singular" and "plural" parameters of WP_List_Table instances
This commit is contained in:
Claudio Sanches 2017-04-06 10:33:43 -03:00 committed by GitHub
commit 550f7b4028
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,
) );
}