1
0
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:
Till Krüss
2016-05-19 08:38:50 -07:00
committed by Taylor Otwell
parent 664edb8884
commit bd70e15d00

View File

@@ -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');
}
/**