Skip to content

Commit b47ecaa

Browse files
committed
fix wp installing and JobQueueRunner error
1 parent 16622b5 commit b47ecaa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Services/JobQueueRunner.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ class JobQueueRunner extends Service
1212

1313
public function __construct()
1414
{
15+
16+
if(wp_installing()) {
17+
return;
18+
}
19+
1520
$queueConfig = Config::getFromContainer()->locate('queue') ?? [];
1621

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

0 commit comments

Comments
 (0)