Skip to content

Commit c7762ea

Browse files
authored
[docs] Fix Wordpress Git Clone (ddev#4686) [skip ci]
1 parent b807000 commit c7762ea

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

docs/content/users/quickstart.md

+15-19
Original file line numberDiff line numberDiff line change
@@ -394,43 +394,39 @@ While the generic `php` project type is [ready to go](./project.md) with any CMS
394394

395395
### Git Clone
396396

397-
To get started using DDEV with an existing WordPress project, clone the project’s repository. Note that the git URL shown here is just an example.
397+
To get started using DDEV with an existing WordPress project, clone the project’s repository.
398398

399399
```bash
400-
git clone https://github.com/example/example-site.git
401-
cd example-site
400+
git clone https://github.com/example/my-site.git
401+
cd my-site
402402
ddev config
403403
```
404404

405405
You’ll see a message like:
406406

407-
```php
408-
An existing user-managed wp-config.php file has been detected!
409-
Project DDEV settings have been written to:
410-
411-
/Users/rfay/workspace/bedrock/web/wp-config-ddev.php
407+
> An existing user-managed wp-config.php file has been detected!
408+
> Project DDEV settings have been written to:
409+
>
410+
> /Users/rfay/workspace/bedrock/web/wp-config-ddev.php
412411

413-
Please comment out any database connection settings in your wp-config.php and
414-
add the following snippet to your wp-config.php, near the bottom of the file
415-
and before the include of wp-settings.php:
412+
Comment out any database connection settings in your `wp-config.php` file and add the following snippet to your `wp-config.php`, near the bottom of the file and before the include of `wp-settings.php`:
416413

414+
```php
417415
// Include for DDEV-managed settings in wp-config-ddev.php.
418416
$ddev_settings = dirname(__FILE__) . '/wp-config-ddev.php';
419417
if (is_readable($ddev_settings) && !defined('DB_USER')) {
420418
require_once($ddev_settings);
421419
}
422-
423-
If you don't care about those settings, or config is managed in a .env
424-
file, etc, then you can eliminate this message by putting a line that says
425-
// wp-config-ddev.php not needed
426-
in your wp-config.php
427420
```
428421

429-
So just add the suggested include into your `wp-config.php`, or take the workaround shown.
422+
If you don't care about those settings, or config is managed elsewhere (like in a `.env`
423+
file), you can eliminate this message by adding a comment to `wp-config.php`:
430424

431-
Now start your project with [`ddev start`](../users/usage/commands.md#start).
425+
```php
426+
// wp-config-ddev.php not needed
427+
```
432428

433-
Quickstart instructions regarding database imports can be found under [Importing a database](#importing-a-database).
429+
Now run [`ddev start`](../users/usage/commands.md#start) and continue [importing a database](#importing-a-database) if you need to.
434430

435431
## Configuration Files
436432

0 commit comments

Comments
 (0)