Applied new kill_process() method into WC_Regenerate_Images

This commit is contained in:
Claudio Sanches 2018-02-01 12:03:28 -02:00
parent 7615783980
commit 6ce1bb36b0
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ class WC_Regenerate_Images {
private static function queue_image_regeneration() {
global $wpdb;
// First lets cancel existing running queue to avoid running it more than once.
self::$background_process->cancel_process();
self::$background_process->kill_process();
// Now lets find all product image attachments IDs and pop them onto the queue.
$images = $wpdb->get_results( // @codingStandardsIgnoreLine