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:
committed by
Taylor Otwell
parent
2497122810
commit
3f2ed290c2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user