mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 08:30:07 +01:00
Detect WordPress by configuration file (#65)
WordPress supports being placed in [it's own directory](https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory), but in both setups the `wp-config.php` file will be in the root directory.
This commit is contained in:
committed by
Taylor Otwell
parent
664edb8884
commit
bd70e15d00
@@ -12,7 +12,7 @@ class WordPressValetDriver extends BasicValetDriver
|
||||
*/
|
||||
public function serves($sitePath, $siteName, $uri)
|
||||
{
|
||||
return is_dir($sitePath.'/wp-admin');
|
||||
return file_exists($sitePath.'/wp-config.php');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user