Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug that it would never run the delete batch requests
There are two problems: 1. `$product_id_map` is an array map with the format like `[ 'online:en:TW:gla_5981' => 5981 ]` while the method `find_delete_product_ids` accepts an array of product IDs. 2. Even though we fix the above issue by using `array_values( $product_id_map)`, WCProductQuery couldn't get the product as well because the product is already trashed.
- Loading branch information