Skip to content

Commit 1d417f8

Browse files
authored
🩹 Disable the relative URL module while running in console (Fixes #13) (#14)
1 parent 2ee384a commit 1d417f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/Modules/RelativeUrlsModule.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class RelativeUrlsModule extends AbstractModule
1212
protected function enabled(): bool
1313
{
1414
return parent::enabled()
15+
&& ! $this->app->runningInConsole()
1516
&& ! isset($_GET['sitemap'])
1617
&& ! in_array($GLOBALS['pagenow'], ['wp-login.php', 'wp-register.php'], true);
1718
}

0 commit comments

Comments
 (0)