Continue instead of exit

This commit is contained in:
Narek Zakarian 2024-09-11 20:23:09 +04:00
parent 15a8a0d9d0
commit 42a6cb2b45
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -25,7 +25,7 @@ class TaskRegistrar implements TaskRegistrarInterface {
public function register( array $tasks ): void {
foreach ( $tasks as $task ) {
if ( $task instanceof SimpleRedirectTask && ! $task->is_enabled() ) {
return;
continue;
}
$added_task = TaskLists::add_task( 'extended', $task );