Skip to content

Commit

Permalink
refactor(Module/WPLoader) use loadOnly parameter from configuration i…
Browse files Browse the repository at this point in the history
…f null
  • Loading branch information
lucatume committed Aug 1, 2024
1 parent f4199a1 commit 483cf60
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Module/WPLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -555,10 +555,14 @@ private function ensureDbModuleCompat(): void
*
* @throws Throwable
*
* @internal This method is not covered by the backward compatibility promise for wp-browser.
* @internal This method is not part of the module API.
*/
public function _loadWordPress(bool $loadOnly = false): void
public function _loadWordPress(?bool $loadOnly = null): void
{
$config = $this->config;
/** @var array{loadOnly: bool} $config */
$loadOnly = $loadOnly ?? $config['loadOnly'];

$this->loadConfigFiles();

if ($loadOnly) {
Expand Down

0 comments on commit 483cf60

Please sign in to comment.