Skip to content

Commit

Permalink
fix wp installing and JobQueueRunner error
Browse files Browse the repository at this point in the history
  • Loading branch information
kevindees committed Jun 26, 2023
1 parent 16622b5 commit b47ecaa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Services/JobQueueRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ class JobQueueRunner extends Service

public function __construct()
{

if(wp_installing()) {
return;
}

$queueConfig = Config::getFromContainer()->locate('queue') ?? [];

require_once ( Config::getFromContainer()->locate('paths.vendor') . "/woocommerce/action-scheduler/action-scheduler.php" );
Expand Down

0 comments on commit b47ecaa

Please sign in to comment.