Skip to content

Commit

Permalink
Simplify WordpressLoader::loadWordpress
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored and williarin committed Jul 26, 2023
1 parent 2d5904a commit eda2110
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Loader/WordpressLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,19 +109,14 @@ public function createWordpressResponse(string $urlPathName): Response

public function loadWordpress(): void
{
$url = '/wp-load.php';
$request = $this->requestStack->getCurrentRequest();

global $wordpressLoader;
$wordpressLoader = $this;

foreach (WordpressGlobals::GLOBALS as $global) {
global $$global;
}

$entryPoint = $this->wordpressDirectory . '/wp-load.php';

require_once $entryPoint;
require_once $this->wordpressDirectory . '/wp-load.php';
}

private function getAuthResponse(string $username, string $password, bool $rememberMe): RedirectResponse
Expand Down

0 comments on commit eda2110

Please sign in to comment.