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

fix offset error in wp-admin

This commit is contained in:
Evan Mattson
2016-05-09 14:07:04 -04:00
parent f6abc45223
commit cf1b35589a

View File

@@ -14,4 +14,19 @@ public function serves($sitePath, $siteName, $uri)
{
return is_dir($sitePath.'/wp-admin');
}
/**
* Get the fully resolved path to the application's front controller.
*
* @param string $sitePath
* @param string $siteName
* @param string $uri
* @return string
*/
public function frontControllerPath($sitePath, $siteName, $uri)
{
$_SERVER['PHP_SELF'] = $uri;
return parent::frontControllerPath($sitePath, $siteName, $uri);
}
}