From 0c3cbae1dc224164d8e65afe38ccb34483c738ce Mon Sep 17 00:00:00 2001 From: vnmedeiros Date: Wed, 7 Apr 2021 12:33:33 -0300 Subject: [PATCH] fix: show the message on process finished with errors --- src/classes/class-tainacan-background-process.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/classes/class-tainacan-background-process.php b/src/classes/class-tainacan-background-process.php index 05f9bac8a..abe9d75c5 100644 --- a/src/classes/class-tainacan-background-process.php +++ b/src/classes/class-tainacan-background-process.php @@ -191,6 +191,9 @@ abstract class Background_Process extends \Tainacan_WP_Background_Process { if ($status == 'finished') { $params['progress_label'] = __('Process completed','tainacan'); $params['progress_value'] = 100; + } else if ($status == 'finished-errors') { + $params['progress_label'] = __('Process completed with errors','tainacan'); + $params['progress_value'] = 100; } $wpdb->update( $this->table,