Skip to content

Commit

Permalink
🩹 Disable the relative URL module while running in console (Fixes #13) (
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x authored Jul 18, 2024
1 parent 2ee384a commit 1d417f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Modules/RelativeUrlsModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class RelativeUrlsModule extends AbstractModule
protected function enabled(): bool
{
return parent::enabled()
&& ! $this->app->runningInConsole()
&& ! isset($_GET['sitemap'])
&& ! in_array($GLOBALS['pagenow'], ['wp-login.php', 'wp-register.php'], true);
}
Expand Down

0 comments on commit 1d417f8

Please sign in to comment.