1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 00:20:08 +01:00

Populate SERVER_ADDR to avoid undefined index notices in WordPress (#77)

This commit is contained in:
Jan Pingel
2016-06-01 07:59:30 -07:00
committed by Taylor Otwell
parent 2497122810
commit 3f2ed290c2

View File

@@ -25,7 +25,8 @@ public function serves($sitePath, $siteName, $uri)
*/
public function frontControllerPath($sitePath, $siteName, $uri)
{
$_SERVER['PHP_SELF'] = $uri;
$_SERVER['PHP_SELF'] = $uri;
$_SERVER['SERVER_ADDR'] = '127.0.0.1';
return parent::frontControllerPath($sitePath, $siteName, $uri);
}