Skip to content

Commit

Permalink
fix subdomain check
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewminion-luminfire committed Feb 3, 2023
1 parent e5a068c commit 71e3dba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions WordPressMultisiteSubdirectoryValetDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ public function serves($sitePath, $siteName, $uri)
(strpos( file_get_contents($sitePath . '/wp-config.php'), 'MULTISITE') !== false) &&
(
//Double check if we are using subdomains.
strpos( file_get_contents($sitePath . '/wp-config.php'), "define('SUBDOMAIN_INSTALL',true)") ||
strpos( file_get_contents($sitePath . '/wp-config.php'), "define('SUBDOMAIN_INSTALL', true)")
strpos( file_get_contents($sitePath . '/wp-config.php'), "define('SUBDOMAIN_INSTALL',false)") ||
strpos( file_get_contents($sitePath . '/wp-config.php'), "define('SUBDOMAIN_INSTALL', false)") ||
strpos( file_get_contents($sitePath . '/wp-config.php'), "define( 'SUBDOMAIN_INSTALL', false )")
);
}

Expand Down Expand Up @@ -99,4 +100,3 @@ private function forceTrailingSlash($uri)
return $uri;
}
}

0 comments on commit 71e3dba

Please sign in to comment.