johnpbloch / wordpress-core-installer

A composer installer for WordPress core so I can stop saying core is a wordpress-plugin type package.
https://packagist.org/packages/johnpbloch/wordpress-core-installer
GNU General Public License v2.0
207 stars 48 forks source link

wp-config.php #21

Closed aleclarson closed 6 years ago

aleclarson commented 6 years ago

I'm using a custom wp-config.php that is added by a project generator.

How can I keep this installer from overwriting it, or is it safe?

aleclarson commented 6 years ago

I'll be keeping the real wp-config.php outside the wordpress root, but I still need a "dummy" wp-config.php where WordPress expects it to be which will require the real wp-config.php.

johnpbloch commented 6 years ago

WordPress core already handles having the config file one directory above ABSPATH. Check out the logic in core. So if you keep your wp-config.php file in the same directory that this installer puts WordPress core into it will automatically get picked up in the load sequence.

Let me know if that answered your question.

aleclarson commented 6 years ago

@johnpbloch Ah, very nice. Thanks John!