Skip to content
This repository was archived by the owner on Jun 15, 2022. It is now read-only.

Commit d388782

Browse files
committed
Rename the WC_Custom_Order_Table_CLI class to WooCommerce_Custom_Orders_Table_CLI
1 parent cab8cc0 commit d388782

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

includes/class-wc-custom-order-table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function setup() {
3434

3535
// If we're in a WP-CLI context, load the WP-CLI command.
3636
if ( defined( 'WP_CLI' ) && WP_CLI ) {
37-
WP_CLI::add_command( 'wc-order-table', 'WC_Custom_Order_Table_CLI' );
37+
WP_CLI::add_command( 'wc-order-table', 'WooCommerce_Custom_Orders_Table_CLI' );
3838
}
3939
}
4040

includes/class-wc-custom-order-table-cli.php renamed to includes/class-woocommerce-custom-orders-table-cli.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* Manages the contents of the WooCommerce orders table.
1111
*/
12-
class WC_Custom_Order_Table_CLI extends WP_CLI_Command {
12+
class WooCommerce_Custom_Orders_Table_CLI extends WP_CLI_Command {
1313

1414
/**
1515
* Count how many orders have yet to be migrated into the custom orders table.

tests/test-cli.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ class CLITest extends TestCase {
1111
/**
1212
* Holds a fresh instance of the WP-CLI command class.
1313
*
14-
* @var WC_Custom_Order_Table_CLI
14+
* @var WooCommerce_Custom_Orders_Table_CLI
1515
*/
1616
protected $cli;
1717

1818
/**
1919
* @before
2020
*/
2121
public function init() {
22-
$this->cli = new WC_Custom_Order_Table_CLI();
22+
$this->cli = new WooCommerce_Custom_Orders_Table_CLI();
2323
}
2424

2525
public function test_count() {

0 commit comments

Comments
 (0)