Review feedback changes.
Incorrect comment and unused function argument.
This commit is contained in:
parent
63c59a1f72
commit
cda1645672
|
@ -212,7 +212,7 @@ class WC_Admin_REST_Reports_Import_Controller extends WC_Admin_REST_Reports_Cont
|
|||
public function cancel_import( $request ) {
|
||||
WC_Admin_Reports_Sync::clear_queued_actions();
|
||||
|
||||
$result = array(
|
||||
$result = array(
|
||||
'status' => 'success',
|
||||
'message' => __( 'All pending and in-progress import actions have been cancelled.', 'woocommerce-admin' ),
|
||||
);
|
||||
|
@ -229,7 +229,6 @@ class WC_Admin_REST_Reports_Import_Controller extends WC_Admin_REST_Reports_Cont
|
|||
* @param WP_REST_Request $request Request data.
|
||||
* @return WP_Error|WP_REST_Response
|
||||
*/
|
||||
|
||||
public function delete_imported_items( $request ) {
|
||||
$delete = WC_Admin_Reports_Sync::delete_report_data();
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ class WC_Admin_Reports_Sync {
|
|||
const CUSTOMERS_DELETE_BATCH_INIT = 'wc-admin_delete_customers_batch_init';
|
||||
|
||||
/**
|
||||
* Action hook for importing a batch of customers.
|
||||
* Action hook for deleting a batch of customers.
|
||||
*/
|
||||
const CUSTOMERS_DELETE_BATCH_ACTION = 'wc-admin_delete_customers_batch';
|
||||
|
||||
|
@ -575,11 +575,8 @@ class WC_Admin_Reports_Sync {
|
|||
|
||||
/**
|
||||
* Delete a batch of customers.
|
||||
*
|
||||
* @param int $batch_number Batch number to import (essentially a query page number).
|
||||
* @return void
|
||||
*/
|
||||
public static function customer_lookup_delete_batch( $batch_number ) {
|
||||
public static function customer_lookup_delete_batch() {
|
||||
global $wpdb;
|
||||
$batch_size = self::get_batch_size( self::CUSTOMERS_DELETE_BATCH_ACTION );
|
||||
$customer_ids = $wpdb->get_col(
|
||||
|
|
Loading…
Reference in New Issue