Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Consider moving better-wp-config.php to subdirectory one level below web root #4

Open
mikeschinkel opened this issue Nov 6, 2018 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@mikeschinkel
Copy link
Member

mikeschinkel commented Nov 6, 2018

In order to better support Composer, it appears to me that it would be better to have a subdirectory one level off the web root where this repo could be cloned rather than to store better-wp-config.php in the root and thus making "composing" this project (next to?) impossible. Potential subdirectory names:

  • /.bootstrap
  • /wp-bootstrap
  • Developer's choice, or
  • Something else?

Would like to get feedback on this before I do. This would mean that that index.php and wp-config.php would be changed to have it's require_once() look like this:

require_once( __DIR__ . '/subdir/better-wp-config.php' );

Instead of what it currently looks like:

require_once( __DIR__ . '/better-wp-config.php' );

This would mean wp-bootstrap.php would still be located in the web root and maintained by the project developer.

@mikeschinkel mikeschinkel added the enhancement New feature or request label Nov 6, 2018
@mikeschinkel mikeschinkel self-assigned this Nov 6, 2018
@markkap
Copy link

markkap commented Nov 6, 2018

This will go well with #8 although I am not sure that the directory needs to be hidden by default.

@mikeschinkel mikeschinkel changed the title Consider moving better-wp-config.php to /.bootstrap directory Consider moving better-wp-config.php to subdirectory one level below web root Nov 6, 2018
@mikeschinkel
Copy link
Member Author

@markkap Thanks, and when I saw #8 I was thinking to reference this. :-)
Note I updated this ticket to suggest different potential subdir names, including ones that are not hidden (had planned to do that before your comments, but your comments reinforce.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants